public function set($target)
    {
        if (! is_string($target) || empty($target)) {
            throw new InvalidArgumentException(
                'Invalid target provided. Must be an non-empty string.'
            );
        }
        $this->target = $target;
    }
public function set($target)
    {
        if (! is_string($target) || empty($target)) {
            throw new InvalidArgumentException(
                'Invalid target provided. Must be an non-empty string.'
            );
        }
        $this->target = $target;
    }
public function set ( $ target ) { if ( ! is_string ( $ target ) || empty ( $ target ) ) { throw new InvalidArgumentException ( 'Invalid target provided. Must be an non-empty string.' ) ; } $ this -> target = $ target ; }
Sets the target of upload.

@param string $target The target of upload

@throws \InvalidArgumentException If the target is not string or empty string
Sets the target of upload .