src/Entity/OrderStatus.php line 28

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Knp\DoctrineBehaviors\Contract\Entity\SoftDeletableInterface;
  4. use Knp\DoctrineBehaviors\Model\SoftDeletable\SoftDeletableTrait;
  5. use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
  6. use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
  7. use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
  8. use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use Symfony\Component\Validator\Constraints as Assert;
  11. use Symfony\Component\HttpFoundation\File\UploadedFile;
  12. use Symfony\Component\HttpFoundation\File\File;
  13. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  14. /**
  15.  * @ORM\Entity
  16.  * @ORM\Table(name="order_status")
  17.  */
  18. class OrderStatus implements BlameableInterfaceTimestampableInterfaceSoftDeletableInterface  {
  19.     use BlameableTrait;
  20.     use TimestampableTrait;
  21.     
  22.     use SoftDeletableTrait;
  23.     
  24. /**
  25.      * @ORM\Id
  26.      * @ORM\Column(type="integer")
  27.      * @ORM\GeneratedValue(strategy="AUTO")
  28.      */
  29.     protected $id;
  30.     /**
  31.      * @var string
  32.      *
  33.      * @ORM\Column(name="name", type="text", nullable=true)
  34.      */
  35.     private $name;
  36.     /**
  37.      * @var string
  38.      *
  39.      * @ORM\Column(name="color", type="text", nullable=true)
  40.      */
  41.     private $color;
  42.     /**
  43.      * @ORM\ManyToOne(targetEntity="App\Entity\EmailTemplate")
  44.      */
  45.     private $email;
  46.     /**
  47.      * @Doctrine\ORM\Mapping\Column(name="sent_order_status", type="boolean", options={"default"=0})
  48.      */
  49.     protected $sentOrderStatus;
  50.     /**
  51.      * @Doctrine\ORM\Mapping\Column(name="initial_status", type="boolean", options={"default"=0})
  52.      */
  53.     protected $initialStatus;
  54.     /**
  55.      * StoreFormCommand - czy synchronizować zamówienie z tym statusem z Panel Centrum
  56.      * @Doctrine\ORM\Mapping\Column(name="synchronize_panel_centrum", nullable=true, type="boolean", options={"default"=0})
  57.      */
  58.     protected $synchronizePanelCentrum;
  59.     /**
  60.      * StoreFormCommand - numer ID formy płatności z Panel Centrum
  61.      * @Doctrine\ORM\Mapping\Column(name="payment_id_panel_centrum", nullable=true, type="string", length=32)
  62.      */
  63.     protected $paymentIdPanelCentrum;
  64.     /**
  65.      * Get id
  66.      *
  67.      * @return integer
  68.      */
  69.     public function getId()
  70.     {
  71.         return $this->id;
  72.     }
  73.     /**
  74.      * Set name
  75.      *
  76.      * @param string $name
  77.      *
  78.      * @return OrderStatus
  79.      */
  80.     public function setName($name)
  81.     {
  82.         $this->name $name;
  83.         return $this;
  84.     }
  85.     /**
  86.      * Get name
  87.      *
  88.      * @return string
  89.      */
  90.     public function getName()
  91.     {
  92.         return $this->name;
  93.     }
  94.     /**
  95.      * Set color
  96.      *
  97.      * @param string $color
  98.      *
  99.      * @return OrderStatus
  100.      */
  101.     public function setColor($color)
  102.     {
  103.         $this->color $color;
  104.         return $this;
  105.     }
  106.     /**
  107.      * Get color
  108.      *
  109.      * @return string
  110.      */
  111.     public function getColor()
  112.     {
  113.         return $this->color;
  114.     }
  115.     /**
  116.      * Set sentOrderStatus
  117.      *
  118.      * @param boolean $sentOrderStatus
  119.      *
  120.      * @return OrderStatus
  121.      */
  122.     public function setSentOrderStatus($sentOrderStatus)
  123.     {
  124.         $this->sentOrderStatus $sentOrderStatus;
  125.         return $this;
  126.     }
  127.     /**
  128.      * Get sentOrderStatus
  129.      *
  130.      * @return boolean
  131.      */
  132.     public function getSentOrderStatus()
  133.     {
  134.         return $this->sentOrderStatus;
  135.     }
  136.     /**
  137.      * Set email
  138.      *
  139.      * @param \App\Entity\EmailTemplate $email
  140.      *
  141.      * @return OrderStatus
  142.      */
  143.     public function setEmail(\App\Entity\EmailTemplate $email null)
  144.     {
  145.         $this->email $email;
  146.         return $this;
  147.     }
  148.     /**
  149.      * Get email
  150.      *
  151.      * @return \App\Entity\EmailTemplate
  152.      */
  153.     public function getEmail()
  154.     {
  155.         return $this->email;
  156.     }
  157.     /**
  158.      * Set initialStatus
  159.      *
  160.      * @param boolean $initialStatus
  161.      *
  162.      * @return OrderStatus
  163.      */
  164.     public function setInitialStatus($initialStatus)
  165.     {
  166.         $this->initialStatus $initialStatus;
  167.         return $this;
  168.     }
  169.     /**
  170.      * Get initialStatus
  171.      *
  172.      * @return boolean
  173.      */
  174.     public function getInitialStatus()
  175.     {
  176.         return $this->initialStatus;
  177.     }
  178.     /**
  179.      * @return mixed
  180.      */
  181.     public function getSynchronizePanelCentrum()
  182.     {
  183.         return $this->synchronizePanelCentrum;
  184.     }
  185.     /**
  186.      * @param mixed $synchronizePanelCentrum
  187.      */
  188.     public function setSynchronizePanelCentrum($synchronizePanelCentrum): void
  189.     {
  190.         $this->synchronizePanelCentrum $synchronizePanelCentrum;
  191.     }
  192.     /**
  193.      * @return mixed
  194.      */
  195.     public function getPaymentIdPanelCentrum()
  196.     {
  197.         return $this->paymentIdPanelCentrum;
  198.     }
  199.     /**
  200.      * @param mixed $paymentIdPanelCentrum
  201.      */
  202.     public function setPaymentIdPanelCentrum($paymentIdPanelCentrum): void
  203.     {
  204.         $this->paymentIdPanelCentrum $paymentIdPanelCentrum;
  205.     }
  206. }