/** * @inheritdoc */ public function addParent(IView $parent, IView $child) { foreach ($parent->getVars() as $name => $value) { if (!$child->hasVar($name)) { $child->setVar($name, $value); } } }