src/Notaris/AdminBundle/Entity/DynamicUrl.php line 19

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: lisavandaele
  5.  * Date: 30/01/15
  6.  * Time: 12:53
  7.  */
  8. namespace Notaris\AdminBundle\Entity;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use Gedmo\Mapping\Annotation as Gedmo;
  11. use Symfony\Component\Validator\Constraints as Assert;
  12. /**
  13.  * @ORM\Entity(repositoryClass="DynamicUrlRepository")
  14.  * @ORM\Table(name="dynamic_url")
  15.  */
  16. class DynamicUrl {
  17.     /**
  18.      * @var integer
  19.      *
  20.      * @ORM\Column(name="id", type="integer")
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue(strategy="AUTO")
  23.      */
  24.     private $id;
  25.     /**
  26.      * @Gedmo\Timestampable(on="create")
  27.      * @ORM\Column(name="created", type="datetime")
  28.      */
  29.     private $created;
  30.     /**
  31.      * @ORM\Column(name="updated", type="datetime")
  32.      * @Gedmo\Timestampable(on="update")
  33.      */
  34.     private $updated;
  35.     /**
  36.      * @ORM\ManyToOne(targetEntity="Notaris\AdminBundle\Entity\User")
  37.      * @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="SET NULL")
  38.      */
  39.     private $user;
  40.     /**
  41.      * @ORM\Column(type="boolean", name="is_active")
  42.      * @Assert\Type("boolean")
  43.      */
  44.     private $isActive;
  45.     /**
  46.      * @var string
  47.      *
  48.      * @ORM\Column(name="locale", type="string", length=5)
  49.      */
  50.     private $locale;
  51.     /**
  52.      * @var string
  53.      *
  54.      * @ORM\Column(name="extension", type="string", length=255)
  55.      */
  56.     private $extension;
  57.     /**
  58.      * @var string
  59.      *
  60.      * @ORM\Column(name="destination", type="string", length=255)
  61.      */
  62.     private $destination;
  63.     /**
  64.      * Get id
  65.      *
  66.      * @return integer 
  67.      */
  68.     public function getId()
  69.     {
  70.         return $this->id;
  71.     }
  72.     /**
  73.      * Set created
  74.      *
  75.      * @param \DateTime $created
  76.      * @return DynamicUrl
  77.      */
  78.     public function setCreated($created)
  79.     {
  80.         $this->created = $created;
  81.         return $this;
  82.     }
  83.     /**
  84.      * Get created
  85.      *
  86.      * @return \DateTime 
  87.      */
  88.     public function getCreated()
  89.     {
  90.         return $this->created;
  91.     }
  92.     /**
  93.      * Set updated
  94.      *
  95.      * @param \DateTime $updated
  96.      * @return DynamicUrl
  97.      */
  98.     public function setUpdated($updated)
  99.     {
  100.         $this->updated = $updated;
  101.         return $this;
  102.     }
  103.     /**
  104.      * Get updated
  105.      *
  106.      * @return \DateTime 
  107.      */
  108.     public function getUpdated()
  109.     {
  110.         return $this->updated;
  111.     }
  112.     /**
  113.      * Set isActive
  114.      *
  115.      * @param boolean $isActive
  116.      * @return DynamicUrl
  117.      */
  118.     public function setIsActive($isActive)
  119.     {
  120.         $this->isActive = $isActive;
  121.         return $this;
  122.     }
  123.     /**
  124.      * Get isActive
  125.      *
  126.      * @return boolean 
  127.      */
  128.     public function getIsActive()
  129.     {
  130.         return $this->isActive;
  131.     }
  132.     /**
  133.      * Set locale
  134.      *
  135.      * @param string $locale
  136.      * @return DynamicUrl
  137.      */
  138.     public function setLocale($locale)
  139.     {
  140.         $this->locale = $locale;
  141.         return $this;
  142.     }
  143.     /**
  144.      * Get locale
  145.      *
  146.      * @return string 
  147.      */
  148.     public function getLocale()
  149.     {
  150.         return $this->locale;
  151.     }
  152.     /**
  153.      * Set extension
  154.      *
  155.      * @param string $extension
  156.      * @return DynamicUrl
  157.      */
  158.     public function setExtension($extension)
  159.     {
  160.         $this->extension = $extension;
  161.         return $this;
  162.     }
  163.     /**
  164.      * Get extension
  165.      *
  166.      * @return string 
  167.      */
  168.     public function getExtension()
  169.     {
  170.         return $this->extension;
  171.     }
  172.     /**
  173.      * Set destination
  174.      *
  175.      * @param string $destination
  176.      * @return DynamicUrl
  177.      */
  178.     public function setDestination($destination)
  179.     {
  180.         $this->destination = $destination;
  181.         return $this;
  182.     }
  183.     /**
  184.      * Get destination
  185.      *
  186.      * @return string 
  187.      */
  188.     public function getDestination()
  189.     {
  190.         return $this->destination;
  191.     }
  192.     /**
  193.      * Set user
  194.      *
  195.      * @param \Notaris\AdminBundle\Entity\User $user
  196.      * @return DynamicUrl
  197.      */
  198.     public function setUser(\Notaris\AdminBundle\Entity\User $user = null)
  199.     {
  200.         $this->user = $user;
  201.         return $this;
  202.     }
  203.     /**
  204.      * Get user
  205.      *
  206.      * @return \Notaris\AdminBundle\Entity\User 
  207.      */
  208.     public function getUser()
  209.     {
  210.         return $this->user;
  211.     }
  212. }