src/Cms/TenantBundle/Entity/TenantTypeEmbeddable.php line 13

Open in your IDE?
  1. <?php
  2. namespace Cms\TenantBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Class TenantTypeEmbeddable
  6.  * @package Cms\TenantBundle\Entity
  7.  *
  8.  * @ORM\Embeddable
  9.  */
  10. class TenantTypeEmbeddable
  11. {
  12.     const PRIMARY__BUSINESS 'business';
  13.     const PRIMARY__CDD 'cdd';
  14.     const PRIMARY__HIGHERED 'highered';
  15.     const PRIMARY__INTERNAL 'internal';
  16.     const PRIMARY__K12 'k12';
  17.     const PRIMARY = [
  18.         self::PRIMARY__BUSINESS,
  19.         self::PRIMARY__CDD,
  20.         self::PRIMARY__HIGHERED,
  21.         self::PRIMARY__INTERNAL,
  22.         self::PRIMARY__K12,
  23.     ];
  24.     const SECONDARY__BUSINESS__OTHER 'other';
  25.     const SECONDARY__CDD__BREEZE 'breeze';
  26.     const SECONDARY__CDD__DPFG 'dpfg';
  27.     const SECONDARY__CDD__GMS 'gms';
  28.     const SECONDARY__CDD__HALIFAX 'halifax';
  29.     const SECONDARY__CDD__INFRAMARK 'inframark';
  30.     const SECONDARY__CDD__RIZZETTA 'rizzetta';
  31.     const SECONDARY__CDD__OTHER 'other';
  32.     const SECONDARY__HIGHERED__PUBLIC 'public';
  33.     const SECONDARY__HIGHERED__PRIVATE 'private';
  34.     const SECONDARY__HIGHERED__COMMUNITY 'community';
  35.     const SECONDARY__HIGHERED__INTERNATIONAL 'international';
  36.     const SECONDARY__HIGHERED__OTHER 'other';
  37.     const SECONDARY__INTERNAL__DEV 'dev';
  38.     const SECONDARY__INTERNAL__SALES 'sales';
  39.     const SECONDARY__INTERNAL__OTHER 'other';
  40.     const SECONDARY__K12__PUBLIC 'public';
  41.     const SECONDARY__K12__PRIVATE 'private';
  42.     const SECONDARY__K12__CHARTER 'charter';
  43.     const SECONDARY__K12__VOCATIONAL 'vocational';
  44.     const SECONDARY__K12__INTERNATIONAL 'international';
  45.     const SECONDARY__K12__MORIC 'moric';
  46.     const SECONDARY__K12__OTHER 'other';
  47.     const SECONDARY = [
  48.         self::PRIMARY__BUSINESS => [
  49.             self::SECONDARY__BUSINESS__OTHER,
  50.         ],
  51.         self::PRIMARY__CDD => [
  52.             self::SECONDARY__CDD__BREEZE,
  53.             self::SECONDARY__CDD__DPFG,
  54.             self::SECONDARY__CDD__GMS,
  55.             self::SECONDARY__CDD__HALIFAX,
  56.             self::SECONDARY__CDD__INFRAMARK,
  57.             self::SECONDARY__CDD__OTHER,
  58.             self::SECONDARY__CDD__RIZZETTA,
  59.         ],
  60.         self::PRIMARY__HIGHERED => [
  61.             self::SECONDARY__HIGHERED__COMMUNITY,
  62.             self::SECONDARY__HIGHERED__INTERNATIONAL,
  63.             self::SECONDARY__HIGHERED__OTHER,
  64.             self::SECONDARY__HIGHERED__PRIVATE,
  65.             self::SECONDARY__HIGHERED__PUBLIC,
  66.         ],
  67.         self::PRIMARY__INTERNAL => [
  68.             self::SECONDARY__INTERNAL__DEV,
  69.             self::SECONDARY__INTERNAL__OTHER,
  70.             self::SECONDARY__INTERNAL__SALES,
  71.         ],
  72.         self::PRIMARY__K12 => [
  73.             self::SECONDARY__K12__CHARTER,
  74.             self::SECONDARY__K12__INTERNATIONAL,
  75.             self::SECONDARY__K12__MORIC,
  76.             self::SECONDARY__K12__OTHER,
  77.             self::SECONDARY__K12__PRIVATE,
  78.             self::SECONDARY__K12__PUBLIC,
  79.             self::SECONDARY__K12__VOCATIONAL,
  80.         ],
  81.     ];
  82.     /**
  83.      * @var string|null
  84.      *
  85.      * @ORM\Column(
  86.      *     type = "string",
  87.      *     nullable = true
  88.      * )
  89.      */
  90.     protected $primary;
  91.     /**
  92.      * @var string|null
  93.      *
  94.      * @ORM\Column(
  95.      *     type = "string",
  96.      *     nullable = true
  97.      * )
  98.      */
  99.     protected $secondary;
  100.     /**
  101.      * @return string|null
  102.      */
  103.     public function getPrimary(): ?string
  104.     {
  105.         return $this->primary;
  106.     }
  107.     /**
  108.      * @param string|null $value
  109.      * @return $this
  110.      */
  111.     public function setPrimary(?string $value null): TenantTypeEmbeddable
  112.     {
  113.         $this->primary $value;
  114.         return $this;
  115.     }
  116.     /**
  117.      * @return string|null
  118.      */
  119.     public function getSecondary(): ?string
  120.     {
  121.         return $this->secondary;
  122.     }
  123.     /**
  124.      * @param string|null $value
  125.      * @return $this
  126.      */
  127.     public function setSecondary(?string $value null): TenantTypeEmbeddable
  128.     {
  129.         $this->secondary $value;
  130.         return $this;
  131.     }
  132. }