public function add(AbstractComponent $component) { $name = $component->getPropertyName(); $this->components[$name] = $component; return $this; }