src/Micrometa/Ports/Item/Item.php
protected function isTypeInNames($type, $profile, array $names)
    {
        return in_array($type->name, $names) &&
               (($type->profile === null) ? true : ($type->profile == $profile));
    }
protected function isTypeInNames($type, $profile, array $names)
    {
        return in_array($type->name, $names) &&
               (($type->profile === null) ? true : ($type->profile == $profile));
    }
protected function isTypeInNames ( $ type , $ profile , array $ names ) { return in_array ( $ type -> name , $ names ) && ( ( $ type -> profile === null ) ? true : ( $ type -> profile == $ profile ) ) ; }
Test whether a type is contained in a list of names

@param \stdClass $type Type
@param string $profile Type profile
@param array $names    Aliased type names

@return bool Type is contained in names list
Test whether a type is contained in a list of names