| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <?php
- declare(strict_types=1);
- namespace App\Entity\Core;
- use App\Entity\Organization\OrganizationAddressPostal;
- use App\Repository\Core\AddressPostalRepository;
- use Doctrine\ORM\Mapping as ORM;
- #[ORM\Entity(repositoryClass: AddressPostalRepository::class)]
- class AddressPostal
- {
- #[ORM\Id]
- #[ORM\Column]
- #[ORM\GeneratedValue]
- private ?int $id = null;
- #[ORM\ManyToOne]
- private ?Country $addressCountry = null;
- #[ORM\Column(length: 100, nullable: true)]
- private ?string $addressCity = null;
- #[ORM\Column(length: 100, nullable: true)]
- private ?string $addressOwner = null;
- #[ORM\Column(length: 20, nullable: true)]
- private ?string $postalCode = null;
- #[ORM\Column(length: 255, nullable: true)]
- private ?string $streetAddress = null;
- #[ORM\Column(length: 255, nullable: true)]
- private ?string $streetAddressSecond = null;
- #[ORM\Column(length: 255, nullable: true)]
- private ?string $streetAddressThird = null;
- #[ORM\Column(nullable: true)]
- private ?float $latitude = null;
- #[ORM\Column(nullable: true)]
- private ?float $longitude = null;
- #[ORM\OneToOne(mappedBy: 'addressPostal', cascade: ['persist', 'remove'])]
- private OrganizationAddressPostal $organizationAddressPostal;
- public function getId(): ?int
- {
- return $this->id;
- }
- public function getAddressCountry(): ?Country
- {
- return $this->addressCountry;
- }
- public function setAddressCountry(?Country $addressCountry): self
- {
- $this->addressCountry = $addressCountry;
- return $this;
- }
- public function getAddressCity(): ?string
- {
- return $this->addressCity;
- }
- public function setAddressCity(?string $addressCity): self
- {
- $this->addressCity = $addressCity;
- return $this;
- }
- public function getAddressOwner(): ?string
- {
- return $this->addressOwner;
- }
- public function setAddressOwner(?string $addressOwner): self
- {
- $this->addressOwner = $addressOwner;
- return $this;
- }
- public function getPostalCode(): ?string
- {
- return $this->postalCode;
- }
- public function setPostalCode(?string $postalCode): self
- {
- $this->postalCode = $postalCode;
- return $this;
- }
- public function getStreetAddress(): ?string
- {
- return $this->streetAddress;
- }
- public function setStreetAddress(?string $streetAddress): self
- {
- $this->streetAddress = $streetAddress;
- return $this;
- }
- public function getStreetAddressSecond(): ?string
- {
- return $this->streetAddressSecond;
- }
- public function setStreetAddressSecond(?string $streetAddressSecond): self
- {
- $this->streetAddressSecond = $streetAddressSecond;
- return $this;
- }
- public function getStreetAddressThird(): ?string
- {
- return $this->streetAddressThird;
- }
- public function setStreetAddressThird(?string $streetAddressThird): self
- {
- $this->streetAddressThird = $streetAddressThird;
- return $this;
- }
- public function getLatitude(): ?float
- {
- return $this->latitude;
- }
- public function setLatitude(?float $latitude): self
- {
- $this->latitude = $latitude;
- return $this;
- }
- public function getLongitude(): ?float
- {
- return $this->longitude;
- }
- public function setLongitude(?float $longitude): self
- {
- $this->longitude = $longitude;
- return $this;
- }
- public function getOrganizationAddressPostal(): ?OrganizationAddressPostal
- {
- return $this->organizationAddressPostal;
- }
- public function setOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
- {
- // set the owning side of the relation if necessary
- if ($organizationAddressPostal->getAddressPostal() !== $this) {
- $organizationAddressPostal->setAddressPostal($this);
- }
- $this->organizationAddressPostal = $organizationAddressPostal;
- return $this;
- }
- }
|