src/Flexy/ShopBundle/Entity/Customer/CustomerAddress.php line 13
<?phpnamespace App\Flexy\ShopBundle\Entity\Customer;use ApiPlatform\Core\Annotation\ApiResource;use App\Flexy\ShopBundle\Entity\Shipping\City;use App\Flexy\ShopBundle\Entity\Shipping\Departement;use App\Flexy\ShopBundle\Repository\Customer\CustomerAddressRepository;use Doctrine\ORM\Mapping as ORM;#[ApiResource]#[ORM\Entity(repositoryClass: CustomerAddressRepository::class)]class CustomerAddress{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column(type: 'integer')]private $id;#[ORM\Column(type: 'text', nullable: true)]private ?string $description = null;#[ORM\Column(type: 'string', length: 255, nullable: true)]private ?string $email = null;#[ORM\Column(type: 'datetime_immutable', nullable: true)]private ?\DateTimeImmutable $createdAt = null;#[ORM\Column(type: 'string', length: 255, nullable: true)]private ?string $address = null;#[ORM\Column(type: 'string', length: 255)]private ?string $phone = null;#[ORM\Column(type: 'string', length: 255, nullable: true)]private ?string $companyName = null;#[ORM\Column(type: 'string', length: 255, nullable: true)]private ?string $addressIndication = null;#[ORM\Column(type: 'string', length: 255, nullable: true)]private ?string $country = null;#[ORM\Column(type: 'string', length: 255, nullable: true)]private ?string $postCode = null;#[ORM\ManyToOne(targetEntity: Customer::class, inversedBy: 'customerAddresses')]private ?\App\Flexy\ShopBundle\Entity\Customer\Customer $customer = null;#[ORM\ManyToOne(targetEntity: City::class, inversedBy: 'customerAddresses')]private ?\App\Flexy\ShopBundle\Entity\Shipping\City $city = null;#[ORM\ManyToOne(targetEntity: Departement::class, inversedBy: 'customerAddresses')]private ?\App\Flexy\ShopBundle\Entity\Shipping\Departement $departement = null;public function getId(): ?int{return $this->id;}public function getDescription(): ?string{return $this->description;}public function setDescription(?string $description): self{$this->description = $description;return $this;}public function getEmail(): ?string{return $this->email;}public function setEmail(?string $email): self{$this->email = $email;return $this;}public function getCreatedAt(): ?\DateTimeImmutable{return $this->createdAt;}public function setCreatedAt(?\DateTimeImmutable $createdAt): self{$this->createdAt = $createdAt;return $this;}public function getAddress(): ?string{return $this->address;}public function setAddress(?string $address): self{$this->address = $address;return $this;}public function getPhone(): ?string{return $this->phone;}public function setPhone(string $phone): self{$this->phone = $phone;return $this;}public function getCompanyName(): ?string{return $this->companyName;}public function setCompanyName(?string $companyName): self{$this->companyName = $companyName;return $this;}public function getAddressIndication(): ?string{return $this->addressIndication;}public function setAddressIndication(?string $addressIndication): self{$this->addressIndication = $addressIndication;return $this;}public function getCountry(): ?string{return $this->country;}public function setCountry(?string $country): self{$this->country = $country;return $this;}public function getPostCode(): ?string{return $this->postCode;}public function setPostCode(?string $postCode): self{$this->postCode = $postCode;return $this;}public function getCustomer(): ?Customer{return $this->customer;}public function setCustomer(?Customer $customer): self{$this->customer = $customer;return $this;}public function getCity(): ?City{return $this->city;}public function setCity(?City $city): self{$this->city = $city;return $this;}public function getDepartement(): ?Departement{return $this->departement;}public function setDepartement(?Departement $departement): self{$this->departement = $departement;return $this;}}