src/CoreBundle/Entity/Featured.php line 10

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity;
  3. use DateTime;
  4. /**
  5.  * Featured
  6.  */
  7. class Featured
  8. {
  9.     /**
  10.      * @var integer
  11.      */
  12.     private $id;
  13.     /**
  14.      * @var string
  15.      */
  16.     private $data;
  17.     /**
  18.      * @var DateTime
  19.      */
  20.     private $date_create;
  21.     /**
  22.      * @var User
  23.      */
  24.     private $user;
  25.     /**
  26.      * Get id
  27.      *
  28.      * @return integer
  29.      */
  30.     public function getId()
  31.     {
  32.         return $this->id;
  33.     }
  34.     /**
  35.      * Set data
  36.      *
  37.      * @param string $data
  38.      *
  39.      * @return Featured
  40.      */
  41.     public function setData($data)
  42.     {
  43.         $this->data $data;
  44.         return $this;
  45.     }
  46.     /**
  47.      * Get data
  48.      *
  49.      * @return string
  50.      */
  51.     public function getData()
  52.     {
  53.         return $this->data;
  54.     }
  55.     /**
  56.      * Set dateCreate
  57.      *
  58.      * @param DateTime $dateCreate
  59.      *
  60.      * @return Featured
  61.      */
  62.     public function setDateCreate($dateCreate)
  63.     {
  64.         $this->date_create $dateCreate;
  65.         return $this;
  66.     }
  67.     /**
  68.      * Get dateCreate
  69.      *
  70.      * @return DateTime
  71.      */
  72.     public function getDateCreate()
  73.     {
  74.         return $this->date_create;
  75.     }
  76.     /**
  77.      * Set user
  78.      *
  79.      * @param User $user
  80.      *
  81.      * @return Featured
  82.      */
  83.     public function setUser(User $user null)
  84.     {
  85.         $this->user $user;
  86.         return $this;
  87.     }
  88.     /**
  89.      * Get user
  90.      *
  91.      * @return User
  92.      */
  93.     public function getUser()
  94.     {
  95.         return $this->user;
  96.     }
  97.     /**
  98.      * @var string
  99.      */
  100.     private $type;
  101.     /**
  102.      * Set type
  103.      *
  104.      * @param string $type
  105.      *
  106.      * @return Featured
  107.      */
  108.     public function setType($type)
  109.     {
  110.         $this->type $type;
  111.         return $this;
  112.     }
  113.     /**
  114.      * Get type
  115.      *
  116.      * @return string
  117.      */
  118.     public function getType()
  119.     {
  120.         return $this->type;
  121.     }
  122.     /**
  123.      * @var integer
  124.      */
  125.     private $modelId;
  126.     /**
  127.      * @var integer
  128.      */
  129.     private $variationId;
  130.     /**
  131.      * Set modelId
  132.      *
  133.      * @param integer $modelId
  134.      *
  135.      * @return Featured
  136.      */
  137.     public function setModelId($modelId)
  138.     {
  139.         $this->modelId $modelId;
  140.         return $this;
  141.     }
  142.     /**
  143.      * Get modelId
  144.      *
  145.      * @return integer
  146.      */
  147.     public function getModelId()
  148.     {
  149.         return $this->modelId;
  150.     }
  151.     /**
  152.      * Set variationId
  153.      *
  154.      * @param integer $variationId
  155.      *
  156.      * @return Featured
  157.      */
  158.     public function setVariationId($variationId)
  159.     {
  160.         $this->variationId $variationId;
  161.         return $this;
  162.     }
  163.     /**
  164.      * Get variationId
  165.      *
  166.      * @return integer
  167.      */
  168.     public function getVariationId()
  169.     {
  170.         return $this->variationId;
  171.     }
  172.     /**
  173.      * @var integer
  174.      */
  175.     private $workId;
  176.     /**
  177.      * @var integer
  178.      */
  179.     private $withWork;
  180.     /**
  181.      * Set workId
  182.      *
  183.      * @param integer $workId
  184.      *
  185.      * @return Featured
  186.      */
  187.     public function setWorkId($workId)
  188.     {
  189.         $this->workId $workId;
  190.         return $this;
  191.     }
  192.     /**
  193.      * Get workId
  194.      *
  195.      * @return integer
  196.      */
  197.     public function getWorkId()
  198.     {
  199.         return $this->workId;
  200.     }
  201.     /**
  202.      * Set withWork
  203.      *
  204.      * @param integer $withWork
  205.      *
  206.      * @return Featured
  207.      */
  208.     public function setWithWork($withWork)
  209.     {
  210.         $this->withWork $withWork;
  211.         return $this;
  212.     }
  213.     /**
  214.      * Get withWork
  215.      *
  216.      * @return integer
  217.      */
  218.     public function getWithWork()
  219.     {
  220.         return $this->withWork;
  221.     }
  222.     /**
  223.      * @var string
  224.      */
  225.     private $link;
  226.     /**
  227.      * Set link
  228.      *
  229.      * @param string $link
  230.      *
  231.      * @return Featured
  232.      */
  233.     public function setLink($link)
  234.     {
  235.         $this->link $link;
  236.         return $this;
  237.     }
  238.     /**
  239.      * Get link
  240.      *
  241.      * @return string
  242.      */
  243.     public function getLink()
  244.     {
  245.         return $this->link;
  246.     }
  247. }