/** * Count element's children * * @return integer */ public function countChildren() { return $this->children->count(); }
/** * Add element * * @param CommonElement Element * @return object */ public function addElement(CommonElement $element) { $this->elements->append($element); return $this; }