JonathanTorres\Construct\Settings::getProjectName PHP Method

getProjectName() public method

Get the entered project name.
public getProjectName ( ) : string
return string
    public function getProjectName()
    {
        return $this->projectName;
    }

Usage Example

 /**
  * Show warning if the project name contains the string "php"
  *
  * @param \Symfony\Component\Console\Output\OutputInterface $output
  *
  * @return void
  */
 private function projectNameContainsPhpWarning($output)
 {
     $projectName = $this->settings->getProjectName();
     if ($this->str->contains($projectName, 'php')) {
         $containsPhpWarning = 'Warning: If you are about to create a micro-package "' . $projectName . '" should optimally not contain a "php" notation in the project name.';
         $output->writeln('<error>' . $containsPhpWarning . '</error>');
     }
 }
All Usage Examples Of JonathanTorres\Construct\Settings::getProjectName