src/acdhOeaw/fedora/FedoraResource.php
public function move(string $destination): Response {
        $uri         = $this->fedora->sanitizeUri($this->uri);
        $destination = $this->fedora->sanitizeUri($destination);
        $request     = new Request('MOVE', $uri, ['Destination' => $destination]);
        $response    = $this->fedora->sendRequest($request);
        $cache       = $this->fedora->getCache();
        $cache->deleteById($this->getId());
        $cache->add($this);
        return $response;
    }
public function move(string $destination): Response {
        $uri         = $this->fedora->sanitizeUri($this->uri);
        $destination = $this->fedora->sanitizeUri($destination);
        $request     = new Request('MOVE', $uri, ['Destination' => $destination]);
        $response    = $this->fedora->sendRequest($request);
        $cache       = $this->fedora->getCache();
        $cache->deleteById($this->getId());
        $cache->add($this);
        return $response;
    }
public function move ( string $ destination ) : Response { $ uri = $ this -> fedora -> sanitizeUri ( $ this -> uri ) ; $ destination = $ this -> fedora -> sanitizeUri ( $ destination ) ; $ request = new Request ( 'MOVE' , $ uri , [ 'Destination' => $ destination ] ) ; $ response = $ this -> fedora -> sendRequest ( $ request ) ; $ cache = $ this -> fedora -> getCache ( ) ; $ cache -> deleteById ( $ this -> getId ( ) ) ; $ cache -> add ( $ this ) ; return $ response ; }
Moves resource to another location.

@param string $destination new location
Moves resource to another location .