/** * Returns single component. * @param string * @return IComponent|NULL */ public function getComponent($name) { if (is_numeric($name)) { return $this->multiplier->getComponent($name); } if ($name == $this->name) { return $this->multiplier->getComponent(0); } $component = $this->multiplier->getComponent(0); return $component[$name]; }