public function getResourceTypeForNode(INode $node)
    {
        $result = [];
        foreach ($this->resourceTypeMapping as $className => $resourceType) {
            if ($node instanceof $className) {
                $result[] = $resourceType;
            }
        }

        return $result;
    }
public function getResourceTypeForNode(INode $node)
    {
        $result = [];
        foreach ($this->resourceTypeMapping as $className => $resourceType) {
            if ($node instanceof $className) {
                $result[] = $resourceType;
            }
        }

        return $result;
    }
public function getResourceTypeForNode ( INode $ node ) { $ result = [ ] ; foreach ( $ this -> resourceTypeMapping as $ className => $ resourceType ) { if ( $ node instanceof $ className ) { $ result [ ] = $ resourceType ; } } return $ result ; }
Returns an array with resourcetypes for a node.

@param INode $node

@return array
Returns an array with resourcetypes for a node .