public function setResourceType(ResourceType $resourceType)
    {
        $this->iteratorName = '$' . $resourceType->getName();
        $this->resourceType = $resourceType;
    }
public function setResourceType(ResourceType $resourceType)
    {
        $this->iteratorName = '$' . $resourceType->getName();
        $this->resourceType = $resourceType;
    }
public function setResourceType ( ResourceType $ resourceType ) { $ this -> iteratorName = '$' . $ resourceType -> getName ( ) ; $ this -> resourceType = $ resourceType ; }
call-back for setting the resource type.

@param ResourceType $resourceType The resource type on which the filter
is going to be applied
call - back for setting the resource type .