public function setDestination($destination): void
    {
        $this->destination = (substr($destination, -1) == '/') ? substr($destination, 0, -1) : $destination;
    }
public function setDestination($destination): void
    {
        $this->destination = (substr($destination, -1) == '/') ? substr($destination, 0, -1) : $destination;
    }
public function setDestination ( $ destination ) : void { $ this -> destination = ( substr ( $ destination , - 1 ) == '/' ) ? substr ( $ destination , 0 , - 1 ) : $ destination ; }
Set the destination folder
@param string $destination
Set the destination folder