/** * Add a new selector into this container. * * @param FileSelector|the $selector * @throws BuildException * @internal param the $selector new selector to add * @return the selector that was added */ public function appendSelector(FileSelector $selector) { if ($this->isReference()) { throw $this->noChildrenAllowed(); } parent::appendSelector($selector); }
/** * Gives the count of the number of selectors in this container */ public function selectorCount() { if ($this->isReference()) { return $this->getRef()->selectorCount(); } return parent::selectorCount(); }