<?php
/**
* Created by PhpStorm.
* User: parcel
* Date: 9/21/18
* Time: 6:31 AM
*/
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as Serializer;
/**
* @ORM\Entity
* @ORM\Table(name="organization")
*/
class Organization {
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=45)
*/
private $organizationName;
/**
* @ORM\Column(type="integer")
*/
private $code;
/**
* @var \App\Entity\Person
* @Serializer\Type("App\Entity\Person")
* @ORM\ManyToOne(targetEntity="App\Entity\Person")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="person_id", referencedColumnName="id")
* })
*/
private $contactPerson;
/**
* @ORM\Column(type="string", length=45)
*/
private $county;
/**
* @ORM\Column(type="string", length=45)
*/
private $town;
/**
* @ORM\Column(type="string")
*/
private $address;
/**
* @var \App\Entity\User
* @Serializer\Type("App\Entity\User")
* @ORM\ManyToOne(targetEntity="App\Entity\User")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="created_by", referencedColumnName="id")
* })
*/
private $createdBy;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getOrganizationName()
{
return $this->organizationName;
}
/**
* @param mixed $organizationName
*/
public function setOrganizationName($organizationName)
{
$this->organizationName = $organizationName;
}
/**
* @return mixed
*/
public function getCode()
{
return $this->code;
}
/**
* @param mixed $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return Person
*/
public function getContactPerson()
{
return $this->contactPerson;
}
/**
* @param Person $contactPerson
*/
public function setContactPerson($contactPerson)
{
$this->contactPerson = $contactPerson;
}
/**
* @return mixed
*/
public function getCounty()
{
return $this->county;
}
/**
* @param mixed $county
*/
public function setCounty($county)
{
$this->county = $county;
}
/**
* @return mixed
*/
public function getTown()
{
return $this->town;
}
/**
* @param mixed $town
*/
public function setTown($town)
{
$this->town = $town;
}
/**
* @return mixed
*/
public function getAddress()
{
return $this->address;
}
/**
* @param mixed $address
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return User
*/
public function getCreatedBy()
{
return $this->createdBy;
}
/**
* @param User $createdBy
*/
public function setCreatedBy($createdBy)
{
$this->createdBy = $createdBy;
}
}