original_string: public function addConsoleCommands()
      {
          $this->getConsole()->addUserArgumentsAndOptions();
  
          foreach ($this->tasks as $name => $task) {
              if ($task->isPrivate()) {
                  continue;
              }
  
              $this->getConsole()->add(new TaskCommand($name, $task->getDescription(), $this));
          }
      }
code: public function addConsoleCommands()
      {
          $this->getConsole()->addUserArgumentsAndOptions();
  
          foreach ($this->tasks as $name => $task) {
              if ($task->isPrivate()) {
                  continue;
              }
  
              $this->getConsole()->add(new TaskCommand($name, $task->getDescription(), $this));
          }
      }
code_tokens: public function addConsoleCommands ( ) { $ this -> getConsole ( ) -> addUserArgumentsAndOptions ( ) ; foreach ( $ this -> tasks as $ name => $ task ) { if ( $ task -> isPrivate ( ) ) { continue ; } $ this -> getConsole ( ) -> add ( new TaskCommand ( $ name , $ task -> getDescription ( ) , $ this ) ) ; } }
docstring: Transform tasks to console commands.
docstring_tokens: Transform tasks to console commands .