final public function setDestinationDirectory(string $destinationDirectory)
    {
        if ($destinationDirectory[strlen($destinationDirectory) - 1] != DIRECTORY_SEPARATOR) {
            $destinationDirectory .= DIRECTORY_SEPARATOR;
        }
        $this->destinationDirectory = $destinationDirectory;
    }
final public function setDestinationDirectory(string $destinationDirectory)
    {
        if ($destinationDirectory[strlen($destinationDirectory) - 1] != DIRECTORY_SEPARATOR) {
            $destinationDirectory .= DIRECTORY_SEPARATOR;
        }
        $this->destinationDirectory = $destinationDirectory;
    }
final public function setDestinationDirectory ( string $ destinationDirectory ) { if ( $ destinationDirectory [ strlen ( $ destinationDirectory ) - 1 ] != DIRECTORY_SEPARATOR ) { $ destinationDirectory .= DIRECTORY_SEPARATOR ; } $ this -> destinationDirectory = $ destinationDirectory ; }
Apply the uploaded file directory to be used as a destination. Specified
path starts from the project root directory. Will trim unnecessary
leading slashes.

@param string $destinationDirectory
Apply the uploaded file directory to be used as a destination . Specified path starts from the project root directory . Will trim unnecessary leading slashes .