<?phpnamespace App\AtechNet\CoreBundle\Entity;use App\AtechNet\CoreBundle\Repository\CustomerNoteRepository;use Doctrine\ORM\Mapping\Column;use Doctrine\ORM\Mapping\Entity;use Doctrine\ORM\Mapping\JoinColumn;use Doctrine\ORM\Mapping\ManyToOne;use Doctrine\ORM\Mapping\Table as Table;/** * CustomerNote * * @Table(name="customers__notes") * @Entity(repositoryClass=CustomerNoteRepository::class) */class CustomerNote extends AbstractSignedEntity{ public const CustomerNoteType_Note = 1; public const CustomerNoteType_Meeting = 2; public const CustomerNoteType_Event = 3; public static function getNoteTypes() { return [ self::CustomerNoteType_Note => 'Note', self::CustomerNoteType_Meeting => 'Meeting', self::CustomerNoteType_Event => 'Event', ]; } /** * @var Customer * * @ManyToOne(targetEntity="Customer", inversedBy="notes") * @JoinColumn(name="customer_id", referencedColumnName="id") */ private $customer; /** * @var integer * * @Column(name="type", type="integer") */ private $type; /** * @var string * * @Column(name="text", type="text") */ private $text; /** * @return Customer */ public function getCustomer() { return $this->customer; } /** * @param Customer $customer */ public function setCustomer($customer) { $this->customer = $customer; } /** * Set type * * @param integer $type * @return CustomerNote */ public function setType($type) { $this->type = $type; return $this; } /** * Get type * * @return integer */ public function getType() { return $this->type; } /** * Set text * * @param string $text * @return CustomerNote */ public function setText($text) { $this->text = $text; return $this; } /** * Get text * * @return string */ public function getText() { return $this->text; }}