public function appendSelector(FileSelector $selector) { if ($this->isReference()) { throw $this->noChildrenAllowed(); } $this->selectors[] = $selector; }