public function isParentTypeOf(IType $type) { foreach ($this->composedTypes as $composedType) { if ($composedType->isParentTypeOf($type)) { return true; } } return false; }