/** * Add param to structure * * @param \Deflection\Element\Functions $function Function * * @return \Deflection\Element\Classes */ public function addFunction(\Deflection\Element\Functions $function) { $element = $function->getElement(); $this->functions = array_merge($this->functions, array(''), $element); return $this; }