public function add($resource)
    {
        if (!isset($this->added[$path = $resource->getPath()])) {
            $this->queue->add($resource);
            $this->added[$path] = true;
        }
    }
public function add($resource)
    {
        if (!isset($this->added[$path = $resource->getPath()])) {
            $this->queue->add($resource);
            $this->added[$path] = true;
        }
    }
public function add ( $ resource ) { if ( ! isset ( $ this -> added [ $ path = $ resource -> getPath ( ) ] ) ) { $ this -> queue -> add ( $ resource ) ; $ this -> added [ $ path ] = true ; } }
Adds a resource to the queue.

@param \Orbt\ResourceMirror\Resource\Resource $resource
Adds a resource to the queue .