-
-
Save merltron-pa/fbe62005be25f602c526398b52a3ffd5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Entity; | |
use App\Repository\AddressOrmRepository; | |
use Doctrine\ORM\Mapping as ORM; | |
use Ramsey\Uuid\Doctrine\UuidGenerator; | |
use JMS\Serializer\Annotation as Serializer; | |
/** | |
* @ORM\Entity() | |
* @Serializer\ExclusionPolicy("all") | |
*/ | |
class Address | |
{ | |
/** | |
* @var \Ramsey\Uuid\UuidInterface | |
* | |
* @ORM\Id | |
* @ORM\Column(type="uuid", unique=true) | |
* @ORM\GeneratedValue(strategy="CUSTOM") | |
* @ORM\CustomIdGenerator(class=UuidGenerator::class) | |
*/ | |
private $id; | |
/** | |
* @var string|null | |
* | |
* @ORM\Column(type="string", length=255) | |
* @Serializer\Expose() | |
* @Serializer\Type("string") | |
* @Serializer\SerializedName("name") | |
*/ | |
private $name; | |
/** | |
* @var string|null | |
* | |
* @ORM\Column(type="string", length=255) | |
* @Serializer\Expose() | |
* @Serializer\Type("string") | |
* @Serializer\SerializedName("line1") | |
*/ | |
private $lineOne; | |
/** | |
* @var string|null | |
* | |
* @ORM\Column(type="string", length=255) | |
* @Serializer\Expose() | |
* @Serializer\Type("string") | |
* @Serializer\SerializedName("line2") | |
*/ | |
private $lineTwo; | |
/** | |
* @var string|null | |
* | |
* @ORM\Column(type="string", length=255, nullable=true) | |
* @Serializer\Expose() | |
* @Serializer\Type("string") | |
* @Serializer\SerializedName("line3") | |
*/ | |
private $lineThree; | |
/** | |
* @var string|null | |
* | |
* @ORM\Column(type="string", length=255) | |
* @Serializer\Expose() | |
* @Serializer\Type("string") | |
* @Serializer\SerializedName("city") | |
*/ | |
private $city; | |
/** | |
* @var string|null | |
* | |
* @ORM\Column(type="string", length=255) | |
* @Serializer\Expose() | |
* @Serializer\Type("string") | |
* @Serializer\SerializedName("postcode") | |
*/ | |
private $postcode; | |
/** | |
* @var string|null | |
* | |
* @ORM\Column(type="string", length=255) | |
* @Serializer\Expose() | |
* @Serializer\Type("string") | |
* @Serializer\SerializedName("country") | |
*/ | |
private $country; | |
public function getId(): ?int | |
{ | |
return $this->id; | |
} | |
public function getName(): ?string | |
{ | |
return $this->name; | |
} | |
public function setName(string $name): self | |
{ | |
$this->name = $name; | |
return $this; | |
} | |
/** | |
* @return string|null | |
*/ | |
public function getLineOne(): ?string | |
{ | |
return $this->lineOne; | |
} | |
/** | |
* @return string|null | |
*/ | |
public function getFullname(): ?string | |
{ | |
return $this->fullname; | |
} | |
/** | |
* @return string|null | |
*/ | |
public function getLineTwo(): ?string | |
{ | |
return $this->lineTwo; | |
} | |
/** | |
* @return string|null | |
*/ | |
public function getLineThree(): ?string | |
{ | |
return $this->lineThree; | |
} | |
/** | |
* @return string|null | |
*/ | |
public function getCity(): ?string | |
{ | |
return $this->city; | |
} | |
/** | |
* @return string|null | |
*/ | |
public function getPostcode(): ?string | |
{ | |
return $this->postcode; | |
} | |
/** | |
* @return string|null | |
*/ | |
public function getCountry(): ?string | |
{ | |
return $this->country; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment