original_string: public function addCron(CronInterface $cron, $alias, $priority, $arguments)
      {
          if (!isset($this->crons[$priority])) {
              $this->crons[$priority] = array();
          }
          $cron->setAlias($alias);
          $cron->addArguments($arguments);
          $cron->addPriority($priority);
          $this->crons[$priority][$alias] = $cron;
      }
code: public function addCron(CronInterface $cron, $alias, $priority, $arguments)
      {
          if (!isset($this->crons[$priority])) {
              $this->crons[$priority] = array();
          }
          $cron->setAlias($alias);
          $cron->addArguments($arguments);
          $cron->addPriority($priority);
          $this->crons[$priority][$alias] = $cron;
      }
code_tokens: public function addCron ( CronInterface $ cron , $ alias , $ priority , $ arguments ) { if ( ! isset ( $ this -> crons [ $ priority ] ) ) { $ this -> crons [ $ priority ] = array ( ) ; } $ cron -> setAlias ( $ alias ) ; $ cron -> addArguments ( $ arguments ) ; $ cron -> addPriority ( $ priority ) ; $ this -> crons [ $ priority ] [ $ alias ] = $ cron ; }
docstring: Add cron to crons list
  
  @param CronInterface $cron cron
  @param string $alias cron alias
  @param integer $priority cron priority
  @param string $arguments cron arguments
docstring_tokens: Add cron to crons list