public function setDefaultPath($path = null)
    {
        if ((null !== $path) && (false === is_dir($path))) {
            throw new InvalidArgumentException(sprintf(
                'The path "%s" is not a directory path or does not exist.',
                $path
            ));
        }

        $this->path = $path;
    }
public function setDefaultPath($path = null)
    {
        if ((null !== $path) && (false === is_dir($path))) {
            throw new InvalidArgumentException(sprintf(
                'The path "%s" is not a directory path or does not exist.',
                $path
            ));
        }

        $this->path = $path;
    }
public function setDefaultPath ( $ path = null ) { if ( ( null !== $ path ) && ( false === is_dir ( $ path ) ) ) { throw new InvalidArgumentException ( sprintf ( 'The path "%s" is not a directory path or does not exist.' , $ path ) ) ; } $ this -> path = $ path ; }
Sets the default repository directory path.

@param null|string $path The directory path.

@throws InvalidArgumentException If the path is not a directory.
Sets the default repository directory path .