/** * Add a component to this layout * * @param array */ public function addComponent(array $component) { // is this component a numeric or associative array? if (Converter::isAssociativeArray($component)) { $this->components[] = $component; } else { $this->components = array_merge($this->components, $component); } }