src/CoreBundle/Entity/PostLog.php line 8

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity;
  3. /**
  4.  * PostLog
  5.  */
  6. class PostLog
  7. {
  8.     /**
  9.      * @var int
  10.      */
  11.     private $id;
  12.     /**
  13.      * @var string
  14.      */
  15.     private $update_date;
  16.     /**
  17.      * @var User
  18.      */
  19.     private $user;
  20.     /**
  21.      * @var string
  22.      */
  23.     private $old_value;
  24.     /**
  25.      * @var string
  26.      */
  27.     private $new_value;
  28.     /**
  29.      * @var Post
  30.      */
  31.     private $post;
  32.     /**
  33.      * Get id
  34.      *
  35.      * @return int
  36.      */
  37.     public function getId()
  38.     {
  39.         return $this->id;
  40.     }
  41.     /**
  42.      * Set updateDate
  43.      *
  44.      * @param string $updateDate
  45.      *
  46.      * @return PostLog
  47.      */
  48.     public function setUpdateDate($updateDate)
  49.     {
  50.         $this->update_date $updateDate;
  51.         return $this;
  52.     }
  53.     /**
  54.      * Get updateDate
  55.      *
  56.      * @return string
  57.      */
  58.     public function getUpdateDate()
  59.     {
  60.         return $this->update_date;
  61.     }
  62.     /**
  63.      * Set user
  64.      *
  65.      * @param User $user
  66.      *
  67.      * @return PostLog
  68.      */
  69.     public function setUser(User $user)
  70.     {
  71.         $this->user $user;
  72.         return $this;
  73.     }
  74.     /**
  75.      * Get user
  76.      *
  77.      * @return User
  78.      */
  79.     public function getUser()
  80.     {
  81.         return $this->user;
  82.     }
  83.     /**
  84.      * Set old
  85.      *
  86.      * @param string $old
  87.      *
  88.      * @return PostLog
  89.      */
  90.     public function setOldValue($old)
  91.     {
  92.         $this->old_value $old;
  93.         return $this;
  94.     }
  95.     /**
  96.      * Get old
  97.      *
  98.      * @return string
  99.      */
  100.     public function getOldValue()
  101.     {
  102.         return $this->old_value;
  103.     }
  104.     /**
  105.      * Set newValue
  106.      *
  107.      * @param string $newValue
  108.      *
  109.      * @return PostLog
  110.      */
  111.     public function setNewValue($newValue)
  112.     {
  113.         $this->new_value $newValue;
  114.         return $this;
  115.     }
  116.     /**
  117.      * Get newValue
  118.      *
  119.      * @return string
  120.      */
  121.     public function getNewValue()
  122.     {
  123.         return $this->new_value;
  124.     }
  125.     /**
  126.      * Set post
  127.      *
  128.      * @param Post $post
  129.      *
  130.      * @return PostLog
  131.      */
  132.     public function setPost(Post $post)
  133.     {
  134.         $this->post $post;
  135.         return $this;
  136.     }
  137.     /**
  138.      * Get post
  139.      *
  140.      * @return Post
  141.      */
  142.     public function getPost()
  143.     {
  144.         return $this->post;
  145.     }
  146. }