public function hasType(NodeType $type)
    {
        foreach ($this->types as $t) {
            if ($t->getId() == $type->getId()) { return true; }
        }

        return false;
    }
public function hasType(NodeType $type)
    {
        foreach ($this->types as $t) {
            if ($t->getId() == $type->getId()) { return true; }
        }

        return false;
    }
public function hasType ( NodeType $ type ) { foreach ( $ this -> types as $ t ) { if ( $ t -> getId ( ) == $ type -> getId ( ) ) { return true ; } } return false ; }
Check if a node got a specific type

@param  Ydle\HubBundle\Entity\NodeType $type
@return boolean
Check if a node got a specific type