App\Console\Commands\ThemeMake::confirmInfo PHP Метод

confirmInfo() защищенный Метод

confirmInfo
protected confirmInfo ( ) : boolean
Результат boolean
    protected function confirmInfo()
    {
        $this->info(sprintf("[New theme info]\n  plugin:\t %s\n  path:\t\t %s/%s\n  class file:\t %s/%s\n  class name:\t %s\n  id:\t\t theme/%s\n  title:\t %s\n  description:\t %s", $this->attr['plugin']->getId(), $this->attr['plugin']->getId(), $this->attr['path'], $this->attr['plugin']->getId(), $this->attr['themeFile'], $this->attr['namespace'] . '\\' . $this->attr['themeClass'], $this->attr['themeId'], $this->attr['themeTitle'], $this->attr['description']));
        while ($confirm = $this->ask('Do you want to add theme? [yes|no]')) {
            if ($confirm === 'yes') {
                return true;
            } else {
                return false;
            }
        }
    }