private function startAsking(array $tableList): void
  {
    $question  = new Question('Please enter <note>TABLE NAME</note>: ');
    $tableName = $this->helper->ask($this->input, $this->output, $question);

    $key = StaticDataLayer::searchInRowSet('table_name', $tableName, $tableList);
    if (!isset($key))
    {
      $this->io->logNote("Table '%s' not exist.", $tableName);
    }
    else
    {
      $this->askForCreateSP('INSERT', $tableName);
      $this->askForCreateSP('UPDATE', $tableName);
      $this->askForCreateSP('DELETE', $tableName);
      $this->askForCreateSP('SELECT', $tableName);
    }
  }
private function startAsking(array $tableList): void
  {
    $question  = new Question('Please enter <note>TABLE NAME</note>: ');
    $tableName = $this->helper->ask($this->input, $this->output, $question);

    $key = StaticDataLayer::searchInRowSet('table_name', $tableName, $tableList);
    if (!isset($key))
    {
      $this->io->logNote("Table '%s' not exist.", $tableName);
    }
    else
    {
      $this->askForCreateSP('INSERT', $tableName);
      $this->askForCreateSP('UPDATE', $tableName);
      $this->askForCreateSP('DELETE', $tableName);
      $this->askForCreateSP('SELECT', $tableName);
    }
  }
private function startAsking ( array $ tableList ) : void { $ question = new Question ( 'Please enter <note>TABLE NAME</note>: ' ) ; $ tableName = $ this -> helper -> ask ( $ this -> input , $ this -> output , $ question ) ; $ key = StaticDataLayer :: searchInRowSet ( 'table_name' , $ tableName , $ tableList ) ; if ( ! isset ( $ key ) ) { $ this -> io -> logNote ( "Table '%s' not exist." , $ tableName ) ; } else { $ this -> askForCreateSP ( 'INSERT' , $ tableName ) ; $ this -> askForCreateSP ( 'UPDATE' , $ tableName ) ; $ this -> askForCreateSP ( 'DELETE' , $ tableName ) ; $ this -> askForCreateSP ( 'SELECT' , $ tableName ) ; } }
Main function for asking.

@param array[] $tableList All existing tables from data schema.
Main function for asking .