original_string: public function end(SmileCron $smileCron, $status = 0)
      {
          $now = new \DateTime('now');
          $smileCron->setEnded($now);
          $smileCron->setStatus($status);
          $this->getEntityManager()->persist($smileCron);
          $this->getEntityManager()->flush();
      }
code: public function end(SmileCron $smileCron, $status = 0)
      {
          $now = new \DateTime('now');
          $smileCron->setEnded($now);
          $smileCron->setStatus($status);
          $this->getEntityManager()->persist($smileCron);
          $this->getEntityManager()->flush();
      }
code_tokens: public function end ( SmileCron $ smileCron , $ status = 0 ) { $ now = new \ DateTime ( 'now' ) ; $ smileCron -> setEnded ( $ now ) ; $ smileCron -> setStatus ( $ status ) ; $ this -> getEntityManager ( ) -> persist ( $ smileCron ) ; $ this -> getEntityManager ( ) -> flush ( ) ; }
docstring: End cron command
  
  @param SmileCron $smileCron cron command
  @param int $status cron command status
docstring_tokens: End cron command