mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 22:35:01 +00:00
Apply rector rules: symfony up to 54
This commit is contained in:
@@ -19,17 +19,14 @@ use Symfony\Component\Serializer\Annotation as Serializer;
|
||||
* @ORM\Table(name="chill_3party.party_profession")
|
||||
*
|
||||
* @ORM\Entity(repositoryClass=ThirdPartyProfessionRepository::class)
|
||||
*
|
||||
* @Serializer\DiscriminatorMap(typeProperty="type", mapping={
|
||||
* "third_party_profession": ThirdPartyProfession::class})
|
||||
*/
|
||||
#[Serializer\DiscriminatorMap(typeProperty: 'type', mapping: ['third_party_profession' => ThirdPartyProfession::class])]
|
||||
class ThirdPartyProfession
|
||||
{
|
||||
/**
|
||||
* @ORM\Column(type="boolean")
|
||||
*
|
||||
* @Serializer\Groups({"read"})
|
||||
*/
|
||||
#[Serializer\Groups(['read'])]
|
||||
private bool $active = true;
|
||||
|
||||
/**
|
||||
@@ -38,16 +35,14 @@ class ThirdPartyProfession
|
||||
* @ORM\GeneratedValue
|
||||
*
|
||||
* @ORM\Column(type="integer")
|
||||
*
|
||||
* @Serializer\Groups({"docgen:read", "read", "write"})
|
||||
*/
|
||||
#[Serializer\Groups(['docgen:read', 'read', 'write'])]
|
||||
private ?int $id = null;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="json")
|
||||
*
|
||||
* @Serializer\Groups({"docgen:read", "read"})
|
||||
*/
|
||||
#[Serializer\Groups(['docgen:read', 'read'])]
|
||||
private array $name = [];
|
||||
|
||||
public function getActive(): ?bool
|
||||
|
Reference in New Issue
Block a user