<?phpnamespace App\Entity\Gos;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;use Doctrine\Common\Collections\ArrayCollection;/** * @ORM\Table() * @ORM\Entity(repositoryClass="App\Repository\PaymentStatusRepository") * @ORM\HasLifecycleCallbacks */class PaymentStatus{ /** * @ORM\Column(type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="IDENTITY") */ private $id; /** * @var bool * * @ORM\Column(name="isActive", type="boolean", nullable=true) */ private $isActive; /** * @ORM\Column(type="string", nullable=true) */ private $name; /** * @Gedmo\Slug(fields={"name"}) * @ORM\Column(unique=true) */ private $slug; /** * @ORM\Column(type="integer", nullable=true) */ private $number; /** * @ORM\OneToMany(targetEntity="App\Entity\Gos\Notify", mappedBy="paymentStatus") */ private $notify; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="datetime", nullable=true) */ private $updatedAt; /** @ORM\PrePersist() */ public function prePersist() { $this->createdAt = new \DateTime(); } /** @ORM\PreUpdate() */ public function preUpdate() { $this->updatedAt = new \DateTime(); } public function __toString() { return (string)$this->name; } /** * Constructor */ public function __construct() { $this->notify = new \Doctrine\Common\Collections\ArrayCollection(); } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set isActive * * @param boolean $isActive * * @return PaymentStatus */ public function setIsActive($isActive) { $this->isActive = $isActive; return $this; } /** * Get isActive * * @return boolean */ public function getIsActive() { return $this->isActive; } /** * Set name * * @param string $name * * @return PaymentStatus */ public function setName($name) { $this->name = $name; return $this; } /** * Get name * * @return string */ public function getName() { return $this->name; } /** * Set slug * * @param string $slug * * @return PaymentStatus */ public function setSlug($slug) { $this->slug = $slug; return $this; } /** * Get slug * * @return string */ public function getSlug() { return $this->slug; } /** * Set number * * @param integer $number * * @return PaymentStatus */ public function setNumber($number) { $this->number = $number; return $this; } /** * Get number * * @return integer */ public function getNumber() { return $this->number; } /** * Set createdAt * * @param \DateTime $createdAt * * @return PaymentStatus */ public function setCreatedAt($createdAt) { $this->createdAt = $createdAt; return $this; } /** * Get createdAt * * @return \DateTime */ public function getCreatedAt() { return $this->createdAt; } /** * Set updatedAt * * @param \DateTime $updatedAt * * @return PaymentStatus */ public function setUpdatedAt($updatedAt) { $this->updatedAt = $updatedAt; return $this; } /** * Get updatedAt * * @return \DateTime */ public function getUpdatedAt() { return $this->updatedAt; } /** * Add notify * * @param \App\Entity\Gos\Notify $notify * * @return PaymentStatus */ public function addNotify(\App\Entity\Gos\Notify $notify) { $this->notify[] = $notify; return $this; } /** * Remove notify * * @param \App\Entity\Gos\Notify $notify */ public function removeNotify(\App\Entity\Gos\Notify $notify) { $this->notify->removeElement($notify); } /** * Get notify * * @return \Doctrine\Common\Collections\Collection */ public function getNotify() { return $this->notify; }}