vendor/cron/cron-bundle/Entity/CronReport.php line 13

Open in your IDE?
  1. <?php
  2. namespace Cron\CronBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * CronReport
  6.  *
  7.  * @ORM\Table(name="cron_report")
  8.  * @ORM\Entity(repositoryClass="Cron\CronBundle\Entity\CronReportRepository")
  9.  */
  10. class CronReport
  11. {
  12.     /**
  13.      * @var integer
  14.      *
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\Column(name="run_at", type="datetime")
  22.      * @var \DateTime $runAt
  23.      */
  24.     protected $runAt;
  25.     /**
  26.      * @ORM\Column(name="run_time", type="float")
  27.      * @var float $runTime
  28.      */
  29.     protected $runTime;
  30.     /**
  31.      * @ORM\Column(name="exit_code", type="integer")
  32.      * @var integer $result
  33.      */
  34.     protected $exitCode;
  35.     /**
  36.      * @ORM\Column(type="text")
  37.      * @var string $output
  38.      */
  39.     protected $output;
  40.     /**
  41.      * @ORM\Column(type="text")
  42.      * @var string $error
  43.      */
  44.     protected $error;
  45.     /**
  46.      * @ORM\ManyToOne(targetEntity="CronJob", inversedBy="reports")
  47.      * @ORM\JoinColumn(onDelete="CASCADE")
  48.      * @var CronJob
  49.      */
  50.     protected $job;
  51.     /**
  52.      * @return int
  53.      */
  54.     public function getId()
  55.     {
  56.         return $this->id;
  57.     }
  58.     /**
  59.      * @param CronJob $job
  60.      * @return CronReport
  61.      */
  62.     public function setJob($job)
  63.     {
  64.         $this->job $job;
  65.         return $this;
  66.     }
  67.     /**
  68.      * @return CronJob
  69.      */
  70.     public function getJob()
  71.     {
  72.         return $this->job;
  73.     }
  74.     /**
  75.      * @param string $output
  76.      * @return CronReport
  77.      */
  78.     public function setOutput($output)
  79.     {
  80.         $this->output $output;
  81.         return $this;
  82.     }
  83.     /**
  84.      * @return string
  85.      */
  86.     public function getOutput()
  87.     {
  88.         return $this->output;
  89.     }
  90.     /**
  91.      * @param string $error
  92.      * @return CronReport
  93.      */
  94.     public function setError($error)
  95.     {
  96.         $this->error $error;
  97.         return $this;
  98.     }
  99.     /**
  100.      * @return string
  101.      */
  102.     public function getError()
  103.     {
  104.         return $this->error;
  105.     }
  106.     /**
  107.      * @param int $exitCode
  108.      * @return CronReport
  109.      */
  110.     public function setExitCode($exitCode)
  111.     {
  112.         $this->exitCode $exitCode;
  113.         return $this;
  114.     }
  115.     /**
  116.      * @return int
  117.      */
  118.     public function getExitCode()
  119.     {
  120.         return $this->exitCode;
  121.     }
  122.     /**
  123.      * @param \DateTime $runAt
  124.      * @return CronReport
  125.      */
  126.     public function setRunAt($runAt)
  127.     {
  128.         $this->runAt $runAt;
  129.         return $this;
  130.     }
  131.     /**
  132.      * @return \DateTime
  133.      */
  134.     public function getRunAt()
  135.     {
  136.         return $this->runAt;
  137.     }
  138.     /**
  139.      * @param float $runTime
  140.      * @return CronReport
  141.      */
  142.     public function setRunTime($runTime)
  143.     {
  144.         $this->runTime $runTime;
  145.         return $this;
  146.     }
  147.     /**
  148.      * @return float
  149.      */
  150.     public function getRunTime()
  151.     {
  152.         return $this->runTime;
  153.     }
  154. }