src/Entity/System/Department.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Table(name="ps_department")
  7.  *
  8.  * @ORM\Entity(repositoryClass="App\Repository\System\DepartmentRepository")
  9.  */
  10. class Department
  11. {
  12.     public const GOOGLE_GROUPS_PACKS_CANCELED_REPORT 'bigbuy_packs_canceled_report@googlegroups.com';
  13.     public const DEPARTMENT_COMERCIAL_ID 1;
  14.     public const DEPARTMENT_ADMIN_ID 4;
  15.     public const SALES_AND_DISTRIBUTOR_SERVICE_DEPARTMENT_ID 1;
  16.     public const DEPARTMENT_SUPPORT_ID 3;
  17.     public const DEPARTMENT_SALES_ID 1;
  18.     public const DEPARTMENT_GENERAL_INFO 2;
  19.     public const DEPARTMENT_PURCHASE_ID 5;
  20.     /**
  21.      * @var int
  22.      *
  23.      * @ORM\Id()
  24.      *
  25.      * @ORM\GeneratedValue(strategy="AUTO")
  26.      *
  27.      * @ORM\Column(name="id_department", type="integer")
  28.      */
  29.     private $id;
  30.     /**
  31.      * @var string
  32.      *
  33.      * @ORM\Column(name="email", type="string", length=64)
  34.      */
  35.     private $email;
  36.     /**
  37.      * @var DepartmentLanguage[]|ArrayCollection
  38.      *
  39.      * @ORM\OneToMany(targetEntity="App\Entity\System\DepartmentLanguage", mappedBy="department", orphanRemoval=true)
  40.      */
  41.     private $departmentLanguages;
  42.     public function __construct()
  43.     {
  44.         $this->departmentLanguages = new ArrayCollection();
  45.     }
  46.     /**
  47.      * @return int
  48.      */
  49.     public function getId(): int
  50.     {
  51.         return $this->id;
  52.     }
  53.     /**
  54.      * @return string
  55.      */
  56.     public function getEmail(): string
  57.     {
  58.         return $this->email;
  59.     }
  60.     /**
  61.      * @return ArrayCollection
  62.      */
  63.     public function getDepartmentLanguages(): ArrayCollection
  64.     {
  65.         return $this->departmentLanguages;
  66.     }
  67.     /**
  68.      * @param ArrayCollection $departmentLanguages
  69.      *
  70.      * @return Department
  71.      */
  72.     public function setDepartmentLanguages(ArrayCollection $departmentLanguages): self
  73.     {
  74.         $this->departmentLanguages $departmentLanguages;
  75.         return $this;
  76.     }
  77. }