public function path(string $path) : PathList
    {
        if (!file_exists($path)) {
            throw new \InvalidArgumentException(
                'Arg path doesn\'t exist, path[' . $path . '].'
            );
        }
        if (!is_dir($path)) {
            throw new \InvalidArgumentException(
                'Arg path is not a directory, path[' . $path . '].'
            );
        }
        $this->path = $path;
        return $this;
    }
public function path(string $path) : PathList
    {
        if (!file_exists($path)) {
            throw new \InvalidArgumentException(
                'Arg path doesn\'t exist, path[' . $path . '].'
            );
        }
        if (!is_dir($path)) {
            throw new \InvalidArgumentException(
                'Arg path is not a directory, path[' . $path . '].'
            );
        }
        $this->path = $path;
        return $this;
    }
public function path ( string $ path ) : PathList { if ( ! file_exists ( $ path ) ) { throw new \ InvalidArgumentException ( 'Arg path doesn\'t exist, path[' . $ path . '].' ) ; } if ( ! is_dir ( $ path ) ) { throw new \ InvalidArgumentException ( 'Arg path is not a directory, path[' . $ path . '].' ) ; } $ this -> path = $ path ; return $ this ; }
Set path to find in.

@param string $path

@return $this|PathList
Set path to find in .