partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

CronLogger.php (1353B)


      1 <?php
      2 
      3 namespace PartKeepr\CronLoggerBundle\Entity;
      4 
      5 use Doctrine\ORM\Mapping as ORM;
      6 use PartKeepr\CoreBundle\Entity\BaseEntity;
      7 
      8 /**
      9  * Holds a project attachment.
     10  *
     11  * @ORM\Table(uniqueConstraints={@ORM\UniqueConstraint(name="cronjob", columns={"cronjob"})})
     12  * @ORM\Entity
     13  **/
     14 class CronLogger extends BaseEntity
     15 {
     16     /**
     17      * @ORM\Column(type="datetime")
     18      *
     19      * @var \DateTime
     20      */
     21     private $lastRunDate;
     22 
     23     /**
     24      * @ORM\Column(type="string")
     25      *
     26      * @var string
     27      */
     28     private $cronjob;
     29 
     30     /**
     31      * Sets the last run date and time for this entry.
     32      *
     33      * @param \DateTime $date The date and time
     34      */
     35     public function setLastRunDate(\DateTime $date)
     36     {
     37         $this->lastRunDate = $date;
     38     }
     39 
     40     /**
     41      * Returns the date and time for this entry.
     42      *
     43      * @return \DateTime the date and time for this entry
     44      */
     45     public function getLastRunDate()
     46     {
     47         return $this->lastRunDate;
     48     }
     49 
     50     /**
     51      * Sets the cronjob for this entry.
     52      *
     53      * @param string $cronjob the title for this entry
     54      */
     55     public function setCronjob($cronjob)
     56     {
     57         $this->cronjob = $cronjob;
     58     }
     59 
     60     /**
     61      * Returns the cronjob for this entry.
     62      *
     63      * @return string the title
     64      */
     65     public function getCronjob()
     66     {
     67         return $this->cronjob;
     68     }
     69 }