private function wrapComponent(IComponent $component) { $component = new ProgramLang($component); $component->setFeature("php"); $component = new Hardware($component); $component->setFeature("lin"); $component = new Food($component); $component->setFeature("veg"); return $component; }
private function wrapComponent(IComponent $component) { $component = new ProgramLang($component); $component->setFeature($this->progLange); $component = new Hardware($component); $component->setFeature($this->hardware); $component = new Food($component); $component->setFeature($this->food); return $component; }