public function searchPaths(): self
    {
        //Search root directory if is not declared
        if ($this->options['rootDir'] === null) {
            $this->options['rootDir'] = $this->searchRootDir();
        }

        //Search the vendor directory if is not declared
        if ($this->options['vendorDir'] === null) {
            $this->options['vendorDir'] = $this->searchVendorDir();
        }
        
        return $this;
    }
public function searchPaths(): self
    {
        //Search root directory if is not declared
        if ($this->options['rootDir'] === null) {
            $this->options['rootDir'] = $this->searchRootDir();
        }

        //Search the vendor directory if is not declared
        if ($this->options['vendorDir'] === null) {
            $this->options['vendorDir'] = $this->searchVendorDir();
        }
        
        return $this;
    }
public function searchPaths ( ) : self { //Search root directory if is not declared if ( $ this -> options [ 'rootDir' ] === null ) { $ this -> options [ 'rootDir' ] = $ this -> searchRootDir ( ) ; } //Search the vendor directory if is not declared if ( $ this -> options [ 'vendorDir' ] === null ) { $ this -> options [ 'vendorDir' ] = $ this -> searchVendorDir ( ) ; } return $ this ; }
Search the root and vendor paths if they are not declared.

@return $this
Search the root and vendor paths if they are not declared .