* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */ abstract class Leaf extends Composite { /** * Leaf::add() * * @param Component $comp * @return **/ public function add(Component $comp) { throw new Exception("Cannot add child to " . __CLASS__); } /** * Leaf::remove() * * @param Component $comp * @return **/ public function remove(Component $comp) { throw new Exception("Cannot remove child from " . __CLASS__); } } ?>