getProjectRoot() public method

public getProjectRoot ( ) : string | false
return string | false
 /**
  * Get a list of application names in the local project.
  *
  * @return string[]
  */
 public function getAppNames()
 {
     $apps = [];
     if ($projectRoot = $this->welcomeCommand->getProjectRoot()) {
         foreach (LocalApplication::getApplications($projectRoot) as $app) {
             $name = $app->getName();
             if ($name !== null) {
                 $apps[] = $name;
             }
         }
     }
     return $apps;
 }