<?phpnamespace App\Entity;use App\Repository\AddresseRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: AddresseRepository::class)]class Addresse{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(nullable: true)] private ?bool $default_addresse = null; #[ORM\Column(length: 255)] private ?string $full_addresse = null; #[ORM\Column] private ?int $code_postale = null; #[ORM\Column(length: 150)] private ?string $ville = null; #[ORM\ManyToOne(inversedBy: 'addresses')] private ?User $user = null; public function getId(): ?int { return $this->id; } public function setId(int $id): self { // $this->code_postale = $code_postale; return $this; } public function isDefaultAddresse(): ?bool { return $this->default_addresse; } public function setDefaultAddresse(?bool $default_addresse): self { $this->default_addresse = $default_addresse; return $this; } public function getFullAddresse(): ?string { return $this->full_addresse; } public function setFullAddresse(string $full_addresse): self { $this->full_addresse = $full_addresse; return $this; } public function getCodePostale(): ?int { return $this->code_postale; } public function setCodePostale(int $code_postale): self { $this->code_postale = $code_postale; return $this; } public function getVille(): ?string { return $this->ville; } public function setVille(string $ville): self { $this->ville = $ville; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; }}