public function setResource(Taggable $resource)
    {
        $this->resourceType = $resource->getTaggableType();
        $this->resourceId = $resource->getTaggableId();
    }
public function setResource(Taggable $resource)
    {
        $this->resourceType = $resource->getTaggableType();
        $this->resourceId = $resource->getTaggableId();
    }
public function setResource ( Taggable $ resource ) { $ this -> resourceType = $ resource -> getTaggableType ( ) ; $ this -> resourceId = $ resource -> getTaggableId ( ) ; }
Sets the resource

@param Taggable $resource Resource to set
Sets the resource