|
|
@@ -9,6 +9,7 @@ use ApiPlatform\Metadata\ApiResource;
|
|
|
use ApiPlatform\Metadata\Get;
|
|
|
use App\ApiResources\ApiResourcesInterface;
|
|
|
use App\Enum\Organization\LegalEnum;
|
|
|
+use App\Enum\Organization\PrincipalTypeEnum;
|
|
|
use App\Enum\Organization\SettingsProductEnum;
|
|
|
use Symfony\Component\Serializer\Annotation\Groups;
|
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
@@ -65,6 +66,10 @@ class OrganizationProfile implements ApiResourcesInterface
|
|
|
#[Groups('access_profile_read')]
|
|
|
private ?int $parametersId = null;
|
|
|
|
|
|
+ #[Groups('access_profile_read')]
|
|
|
+ #[Assert\Type(type: PrincipalTypeEnum::class)]
|
|
|
+ private ?PrincipalTypeEnum $principalType = null;
|
|
|
+
|
|
|
public function getId(): ?int
|
|
|
{
|
|
|
return $this->id;
|
|
|
@@ -224,4 +229,16 @@ class OrganizationProfile implements ApiResourcesInterface
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
|
+
|
|
|
+ public function getPrincipalType(): ?PrincipalTypeEnum
|
|
|
+ {
|
|
|
+ return $this->principalType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setPrincipalType(?PrincipalTypeEnum $principalType): self
|
|
|
+ {
|
|
|
+ $this->principalType = $principalType;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
}
|