public function addPath(string $path)
    {
        $path = \rtrim($path, '/');

        if (! \in_array($path, $this->paths)) {
            $this->paths[] = $path;
        }

        return $this;
    }
public function addPath(string $path)
    {
        $path = \rtrim($path, '/');

        if (! \in_array($path, $this->paths)) {
            $this->paths[] = $path;
        }

        return $this;
    }
public function addPath ( string $ path ) { $ path = \ rtrim ( $ path , '/' ) ; if ( ! \ in_array ( $ path , $ this -> paths ) ) { $ this -> paths [ ] = $ path ; } return $ this ; }
Add a new path to finder.

@param  string  $path

@return $this
Add a new path to finder .