src/Uploading/MoveStrategy.php
public function setTargetDirectory($dir)
    {
        if (! is_string($dir) || empty($dir)) {
            throw new InvalidArgumentException(sprintf(
                'Invalid target directory provided; must be a non-empty '
                . 'string, "%s" received.',
                is_object($dir) ? get_class($dir) : gettype($dir)
            ));
        }
        $this->targetDirectory = $dir;
    }
public function setTargetDirectory($dir)
    {
        if (! is_string($dir) || empty($dir)) {
            throw new InvalidArgumentException(sprintf(
                'Invalid target directory provided; must be a non-empty '
                . 'string, "%s" received.',
                is_object($dir) ? get_class($dir) : gettype($dir)
            ));
        }
        $this->targetDirectory = $dir;
    }
public function setTargetDirectory ( $ dir ) { if ( ! is_string ( $ dir ) || empty ( $ dir ) ) { throw new InvalidArgumentException ( sprintf ( 'Invalid target directory provided; must be a non-empty ' . 'string, "%s" received.' , is_object ( $ dir ) ? get_class ( $ dir ) : gettype ( $ dir ) ) ) ; } $ this -> targetDirectory = $ dir ; }
Sets the target directory to move.

If the upload options contains the "target_directory" key, this method
will be called automatically.

@param string $dir The target directory to move

@throws \InvalidArgumentException If the provided directory is not
non-empty string
Sets the target directory to move .