public function removeResource(ResourceNode $resource)
    {
        if ($this->isLinkedToResource($resource)) {
            $this->resources->removeElement($resource);
            --$this->resourceCount;
        }
    }
public function removeResource(ResourceNode $resource)
    {
        if ($this->isLinkedToResource($resource)) {
            $this->resources->removeElement($resource);
            --$this->resourceCount;
        }
    }
public function removeResource ( ResourceNode $ resource ) { if ( $ this -> isLinkedToResource ( $ resource ) ) { $ this -> resources -> removeElement ( $ resource ) ; -- $ this -> resourceCount ; } }
Removes an association with a resource.

@param ResourceNode $resource
Removes an association with a resource .