Vincent GUFFON 4 лет назад
Родитель
Сommit
4399f3147f

+ 0 - 9
src/Enum/Core/ContactPointTypeEnum.php

@@ -15,13 +15,4 @@ class ContactPointTypeEnum extends Enum
     private const BILL = 'BILL';
     private const OTHER = 'OTHER';
     private const CONTACT = 'CONTACT';
-
-    public static function toArray(bool $type = false): array
-    {
-        if($type == 'person'){
-            return ['PRINCIPAL'=>self::PRINCIPAL,'OTHER'=>self::OTHER];
-        }else{
-            return parent::toArray();
-        }
-    }
 }

+ 1 - 1
src/Enum/Organization/AddressPostalOrganizationTypeEnum.php

@@ -6,7 +6,7 @@ namespace App\Enum\Organization;
 use MyCLabs\Enum\Enum;
 
 /**
- * Type d'adresse postale
+ * Type d'adresse postale pour une organization
  */
 class AddressPostalOrganizationTypeEnum extends Enum
 {

+ 15 - 0
src/Enum/Person/AddressPostalPersonTypeEnum.php

@@ -0,0 +1,15 @@
+<?php
+declare(strict_types=1);
+
+namespace App\Enum\Person;
+
+use MyCLabs\Enum\Enum;
+
+/**
+ * Type d'adresse postale pour une Person
+ */
+class AddressPostalPersonTypeEnum extends Enum
+{
+    private const ADDRESS_PRINCIPAL = 'ADDRESS_PRINCIPAL';
+    private const ADDRESS_OTHER = 'ADDRESS_OTHER';
+}