mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-22 22:55:00 +00:00
Apply rector rules: symfony up to 54
This commit is contained in:
@@ -56,23 +56,20 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="point", nullable=true)
|
||||
*
|
||||
* @groups({"read"})
|
||||
*/
|
||||
#[Groups(['read'])]
|
||||
private ?Point $center = null;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=100)
|
||||
*
|
||||
* @groups({"write", "read"})
|
||||
*/
|
||||
#[Groups(['write', 'read'])]
|
||||
private ?string $code = null;
|
||||
|
||||
/**
|
||||
* @ORM\ManyToOne(targetEntity="Chill\MainBundle\Entity\Country")
|
||||
*
|
||||
* @groups({"write", "read"})
|
||||
*/
|
||||
#[Groups(['write', 'read'])]
|
||||
private ?Country $country = null;
|
||||
|
||||
/**
|
||||
@@ -86,37 +83,32 @@ class PostalCode implements TrackUpdateInterface, TrackCreationInterface
|
||||
* @ORM\Column(name="id", type="integer")
|
||||
*
|
||||
* @ORM\GeneratedValue(strategy="AUTO")
|
||||
*
|
||||
* @groups({"write", "read"})
|
||||
*/
|
||||
#[Groups(['write', 'read'])]
|
||||
private ?int $id = null;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=255, name="label")
|
||||
*
|
||||
* @groups({"write", "read"})
|
||||
*/
|
||||
#[Groups(['write', 'read'])]
|
||||
private ?string $name = null;
|
||||
|
||||
/**
|
||||
* @ORM\Column(name="origin", type="integer", nullable=true)
|
||||
*
|
||||
* @groups({"write", "read"})
|
||||
*/
|
||||
#[Groups(['write', 'read'])]
|
||||
private int $origin = 0;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=255, nullable=true)
|
||||
*
|
||||
* @groups({"read"})
|
||||
*/
|
||||
#[Groups(['read'])]
|
||||
private ?string $postalCodeSource = null;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=255, nullable=true)
|
||||
*
|
||||
* @groups({"read"})
|
||||
*/
|
||||
#[Groups(['read'])]
|
||||
private ?string $refPostalCodeId = null;
|
||||
|
||||
public function getCenter(): ?Point
|
||||
|
Reference in New Issue
Block a user