public function setDestinationDirectory($directory) { $this->destinationDirectory = rtrim((string) $directory, \DIRECTORY_SEPARATOR); return $this; }