src/Entity/Clients.php line 16

Open in your IDE?
  1. <?php
  2. // src//App/Entity/Clients.php
  3. namespace App\Entity;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. use App\Entity\User as User;
  7. /**
  8.  * Clients
  9.  *
  10.  * @ORM\Table()
  11.  * @ORM\Entity(repositoryClass="App\Repository\ClientsRepository")
  12.  * @ORM\Entity(repositoryClass="Gedmo\Sortable\Entity\Repository\SortableRepository")
  13.  */
  14. class Clients
  15. {
  16.     /**
  17.      * @var integer
  18.      *
  19.      * @ORM\Column(name="id", type="integer")
  20.      * @ORM\Id
  21.      * @ORM\GeneratedValue(strategy="AUTO")
  22.      */
  23.     private $id;
  24.     /**
  25.      * @var string
  26.      *
  27.      * @ORM\Column(name="name", type="string", length=255)
  28.      */
  29.     private $name;
  30.     /**
  31.      * @var string
  32.      *
  33.      * @ORM\Column(name="logoFilename", type="string", length=255, nullable=true)
  34.      */
  35.     private $logoFilename;
  36.     /**
  37.      * @var string
  38.      *
  39.      * @ORM\Column(name="testamonial", type="text", nullable=true)
  40.      */
  41.     private $testamonial;
  42.     /**
  43.      * @var string
  44.      *
  45.      * @ORM\Column(name="refereeName", type="string", length=255, nullable=true)
  46.      */
  47.     private $refereeName;
  48.     /**
  49.      * @var string
  50.      *
  51.      * @ORM\Column(name="refereePosition", type="string", length=255, nullable=true)
  52.      */
  53.     private $refereePosition;
  54.     /**
  55.      * @var string
  56.      * @Gedmo\Slug(fields={"name"}, updatable=false)
  57.      * @ORM\Column(name="slug", type="string", length=255, unique=true)
  58.      */
  59.     private $slug;
  60.     /**
  61.      * @var boolean
  62.      *
  63.      * @ORM\Column(name="publish", type="boolean", nullable=true)
  64.      */
  65.     private $publish false;
  66.     /**
  67.      * @Gedmo\Timestampable(on="create")
  68.      * @ORM\Column(type="datetime")
  69.      */
  70.     private $created;
  71.     /**
  72.      * @Gedmo\Timestampable(on="update")
  73.      * @ORM\Column(type="datetime")
  74.      */
  75.     private $updated;
  76.     /**
  77.      * @var User $createdBy
  78.      *
  79.      * @Gedmo\Blameable(on="create")
  80.      * @ORM\ManyToOne(targetEntity="User")
  81.      * @ORM\JoinColumn(name="created_by", referencedColumnName="id")
  82.      */
  83.     private $createdBy;
  84.     /**
  85.      * @var User $updatedBy
  86.      *
  87.      * @Gedmo\Blameable(on="update")
  88.      * @ORM\ManyToOne(targetEntity="User")
  89.      * @ORM\JoinColumn(name="updated_by", referencedColumnName="id")
  90.      */
  91.     private $updatedBy;
  92.     /**
  93.      * @Gedmo\SortablePosition
  94.      * @ORM\Column(name="position", type="integer")
  95.      */
  96.     private $position;
  97.     /**
  98.      * Get id
  99.      *
  100.      * @return integer
  101.      */
  102.     public function getId()
  103.     {
  104.         return $this->id;
  105.     }
  106.     /**
  107.      * Set name
  108.      *
  109.      * @param string $name
  110.      * @return Clients
  111.      */
  112.     public function setName($name)
  113.     {
  114.         $this->name $name;
  115.         return $this;
  116.     }
  117.     /**
  118.      * Get name
  119.      *
  120.      * @return string
  121.      */
  122.     public function getName()
  123.     {
  124.         return $this->name;
  125.     }
  126.     /**
  127.      * Set logoFilename
  128.      *
  129.      * @param string $logoFilename
  130.      * @return Clients
  131.      */
  132.     public function setLogoFilename($logoFilename)
  133.     {
  134.         $this->logoFilename $logoFilename;
  135.         return $this;
  136.     }
  137.     /**
  138.      * Get logoFilename
  139.      *
  140.      * @return string
  141.      */
  142.     public function getLogoFilename()
  143.     {
  144.         return $this->logoFilename;
  145.     }
  146.     /**
  147.      * Set testamonial
  148.      *
  149.      * @param string $testamonial
  150.      * @return Clients
  151.      */
  152.     public function setTestamonial($testamonial)
  153.     {
  154.         $this->testamonial $testamonial;
  155.         return $this;
  156.     }
  157.     /**
  158.      * Get testamonial
  159.      *
  160.      * @return string
  161.      */
  162.     public function getTestamonial()
  163.     {
  164.         return $this->testamonial;
  165.     }
  166.     /**
  167.      * Set refereeName
  168.      *
  169.      * @param string $refereeName
  170.      * @return Clients
  171.      */
  172.     public function setRefereeName($refereeName)
  173.     {
  174.         $this->refereeName $refereeName;
  175.         return $this;
  176.     }
  177.     /**
  178.      * Get refereeName
  179.      *
  180.      * @return string
  181.      */
  182.     public function getRefereeName()
  183.     {
  184.         return $this->refereeName;
  185.     }
  186.     /**
  187.      * Set refereePosition
  188.      *
  189.      * @param string $refereePosition
  190.      * @return Clients
  191.      */
  192.     public function setRefereePosition($refereePosition)
  193.     {
  194.         $this->refereePosition $refereePosition;
  195.         return $this;
  196.     }
  197.     /**
  198.      * Get refereePosition
  199.      *
  200.      * @return string
  201.      */
  202.     public function getRefereePosition()
  203.     {
  204.         return $this->refereePosition;
  205.     }
  206.     public function setSlug($slug)
  207.     {
  208.         $this->slug $slug;
  209.     }
  210.     /**
  211.      * Get slug
  212.      *
  213.      * @return string
  214.      */
  215.     public function getSlug()
  216.     {
  217.         return $this->slug;
  218.     }
  219.     /**
  220.      * Set publish
  221.      *
  222.      * @param boolean $publish
  223.      * @return Clients
  224.      */
  225.     public function setPublish($publish)
  226.     {
  227.         $this->publish $publish;
  228.         return $this;
  229.     }
  230.     /**
  231.      * Get publish
  232.      *
  233.      * @return boolean
  234.      */
  235.     public function getPublish()
  236.     {
  237.         return $this->publish;
  238.     }
  239.     /**
  240.      * Set created
  241.      *
  242.      * @param \DateTime $created
  243.      * @return Clients
  244.      */
  245.     public function setCreated($created)
  246.     {
  247.         $this->created $created;
  248.         return $this;
  249.     }
  250.     /**
  251.      * Get created
  252.      *
  253.      * @return \DateTime
  254.      */
  255.     public function getCreated()
  256.     {
  257.         return $this->created;
  258.     }
  259.     /**
  260.      * Set updated
  261.      *
  262.      * @param \DateTime $updated
  263.      * @return Clients
  264.      */
  265.     public function setUpdated($updated)
  266.     {
  267.         $this->updated $updated;
  268.         return $this;
  269.     }
  270.     /**
  271.      * Get updated
  272.      *
  273.      * @return \DateTime
  274.      */
  275.     public function getUpdated()
  276.     {
  277.         return $this->updated;
  278.     }
  279.     /**
  280.      * Get createdBy
  281.      *
  282.      * @return \App\Entity\User
  283.      */
  284.     public function getCreatedBy()
  285.     {
  286.         return $this->createdBy;
  287.     }
  288.     /**
  289.      * Get updatedBy
  290.      *
  291.      * @return \App\Entity\User
  292.      */
  293.     public function getUpdatedBy()
  294.     {
  295.         return $this->updatedBy;
  296.     }
  297.     /**
  298.      * Set createdBy
  299.      *
  300.      * @param \App\Entity\User $createdBy
  301.      *
  302.      * @return Clients
  303.      */
  304.     public function setCreatedBy(\App\Entity\User $createdBy null)
  305.     {
  306.         $this->createdBy $createdBy;
  307.         return $this;
  308.     }
  309.     /**
  310.      * Set updatedBy
  311.      *
  312.      * @param \App\Entity\User $updatedBy
  313.      *
  314.      * @return Clients
  315.      */
  316.     public function setUpdatedBy(\App\Entity\User $updatedBy null)
  317.     {
  318.         $this->updatedBy $updatedBy;
  319.         return $this;
  320.     }
  321.     /**
  322.      * Set position
  323.      *
  324.      * @param integer $position
  325.      * @return Clients
  326.      */
  327.     public function setPosition($position)
  328.     {
  329.         $this->position $position;
  330.         return $this;
  331.     }
  332.     /**
  333.      * Get position
  334.      *
  335.      * @return integer
  336.      */
  337.     public function getPosition()
  338.     {
  339.         return $this->position;
  340.     }
  341. }