public function onInherit(Component &$component) { if (!PropertyResolver::hasProperty($this->getModelObject(), $component->getId())) { return null; } return new WrappedCompoundModel($this); }