protected function addResource($resource)
    {
        $resource = trim($resource);
        if (strlen($resource)) {
            $this->resources[] = $resource;
        }
    }
protected function addResource($resource)
    {
        $resource = trim($resource);
        if (strlen($resource)) {
            $this->resources[] = $resource;
        }
    }
protected function addResource ( $ resource ) { $ resource = trim ( $ resource ) ; if ( strlen ( $ resource ) ) { $ this -> resources [ ] = $ resource ; } }
Add an associated resource

@param string $resource Associated resource
Add an associated resource