<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* Address
*
* @ORM\Table(name="address")
* @ORM\Entity(repositoryClass="App\Repository\AddressRepository")
*/
class Address //extends OrmEntity
{
/**
* @var \Ramsey\Uuid\UuidInterface
*
* @ORM\Id
* @ORM\Column(type="uuid", unique=true)
* @ORM\GeneratedValue(strategy="CUSTOM")
* @ORM\CustomIdGenerator(class="Ramsey\Uuid\Doctrine\UuidGenerator")
* @Groups("Address")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="AddressDetail", type="string", length=255, nullable=true)
* @Groups("Address")
*/
private $addressDetail;
/**
* @var string
*
* @ORM\Column(name="City", type="string", length=255, nullable=true)
* @Groups("Address")
*/
private $city;
/**
* @var string
*
* @ORM\Column(name="Country", type="string", length=255, nullable=true)
* @Groups("Address")
*/
private $country;
/**
* @var \DateTime
*
* @ORM\Column(name="date", type="datetime", nullable=true)
* @Groups("Address")
*/
private $date;
/**
* Address constructor.
* @throws \Exception
*/
public function __construct()
{
$this->city='Luanda';
$this->addressDetail='Luanda';
$this->country='Angola';
//parent::__construct();
}
/**
* Get id
*
* @return \Ramsey\Uuid\UuidInterface
*/
public function getId()
{
return $this->id;
}
/**
* Set addressDetail
*
* @param string $addressDetail
*
* @return Address
*/
public function setAddressDetail($addressDetail)
{
$this->addressDetail = $addressDetail;
return $this;
}
/**
* Get addressDetail
*
* @return string
*/
public function getAddressDetail()
{
return $this->addressDetail;
}
/**
* Set city
*
* @param string $city
*
* @return Address
*/
public function setCity($city)
{
$this->city = $city;
return $this;
}
/**
* Get city
*
* @return string
*/
public function getCity()
{
return $this->city;
}
/**
* Set country
*
* @param string $country
*
* @return Address
*/
public function setCountry($country)
{
$this->country = $country;
return $this;
}
/**
* Get country
*
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* @return \DateTime
*/
public function getDate()
{
return $this->date;
}
/**
* @param string $date
*/
public function setDate($date)
{
$this->date = $date;
}
}