src/Entity/Organization.php line 19

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: parcel
  5.  * Date: 9/21/18
  6.  * Time: 6:31 AM
  7.  */
  8. namespace App\Entity;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use JMS\Serializer\Annotation as Serializer;
  11. /**
  12.  * @ORM\Entity
  13.  * @ORM\Table(name="organization")
  14.  */
  15. class Organization {
  16.     /**
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="IDENTITY")
  19.      * @ORM\Column(type="integer")
  20.      */
  21.     private $id;
  22.     /**
  23.      * @ORM\Column(type="string", length=45)
  24.      */
  25.     private $organizationName;
  26.     /**
  27.      * @ORM\Column(type="integer")
  28.      */
  29.     private $code;
  30.     /**
  31.      * @var \App\Entity\Person
  32.      * @Serializer\Type("App\Entity\Person")
  33.      * @ORM\ManyToOne(targetEntity="App\Entity\Person")
  34.      * @ORM\JoinColumns({
  35.      *   @ORM\JoinColumn(name="person_id", referencedColumnName="id")
  36.      * })
  37.      */
  38.     private $contactPerson;
  39.     /**
  40.      * @ORM\Column(type="string", length=45)
  41.      */
  42.     private $county;
  43.     /**
  44.      * @ORM\Column(type="string", length=45)
  45.      */
  46.     private $town;
  47.     /**
  48.      * @ORM\Column(type="string")
  49.      */
  50.     private $address;
  51.     /**
  52.      * @var \App\Entity\User
  53.      * @Serializer\Type("App\Entity\User")
  54.      * @ORM\ManyToOne(targetEntity="App\Entity\User")
  55.      * @ORM\JoinColumns({
  56.      *   @ORM\JoinColumn(name="created_by", referencedColumnName="id")
  57.      * })
  58.      */
  59.     private $createdBy;
  60.     /**
  61.      * @return mixed
  62.      */
  63.     public function getId()
  64.     {
  65.         return $this->id;
  66.     }
  67.     /**
  68.      * @param mixed $id
  69.      */
  70.     public function setId($id)
  71.     {
  72.         $this->id $id;
  73.     }
  74.     /**
  75.      * @return mixed
  76.      */
  77.     public function getOrganizationName()
  78.     {
  79.         return $this->organizationName;
  80.     }
  81.     /**
  82.      * @param mixed $organizationName
  83.      */
  84.     public function setOrganizationName($organizationName)
  85.     {
  86.         $this->organizationName $organizationName;
  87.     }
  88.     /**
  89.      * @return mixed
  90.      */
  91.     public function getCode()
  92.     {
  93.         return $this->code;
  94.     }
  95.     /**
  96.      * @param mixed $code
  97.      */
  98.     public function setCode($code)
  99.     {
  100.         $this->code $code;
  101.     }
  102.     /**
  103.      * @return Person
  104.      */
  105.     public function getContactPerson()
  106.     {
  107.         return $this->contactPerson;
  108.     }
  109.     /**
  110.      * @param Person $contactPerson
  111.      */
  112.     public function setContactPerson($contactPerson)
  113.     {
  114.         $this->contactPerson $contactPerson;
  115.     }
  116.     /**
  117.      * @return mixed
  118.      */
  119.     public function getCounty()
  120.     {
  121.         return $this->county;
  122.     }
  123.     /**
  124.      * @param mixed $county
  125.      */
  126.     public function setCounty($county)
  127.     {
  128.         $this->county $county;
  129.     }
  130.     /**
  131.      * @return mixed
  132.      */
  133.     public function getTown()
  134.     {
  135.         return $this->town;
  136.     }
  137.     /**
  138.      * @param mixed $town
  139.      */
  140.     public function setTown($town)
  141.     {
  142.         $this->town $town;
  143.     }
  144.     /**
  145.      * @return mixed
  146.      */
  147.     public function getAddress()
  148.     {
  149.         return $this->address;
  150.     }
  151.     /**
  152.      * @param mixed $address
  153.      */
  154.     public function setAddress($address)
  155.     {
  156.         $this->address $address;
  157.     }
  158.     /**
  159.      * @return User
  160.      */
  161.     public function getCreatedBy()
  162.     {
  163.         return $this->createdBy;
  164.     }
  165.     /**
  166.      * @param User $createdBy
  167.      */
  168.     public function setCreatedBy($createdBy)
  169.     {
  170.         $this->createdBy $createdBy;
  171.     }
  172. }