<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity()
* @ORM\Table(name="address")
*/
class Address
{
/**
* @ORM\Column(type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $addressId=0;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $street;
/**
* @ORM\Column(type="text", nullable=true)
*/
protected $streetNumber;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $city;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $zipCode;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
protected $country;
/*
* @ORM\OneToOne(targetEntity="Contact", inversedBy="address", cascade={"persist", "remove"})
* @ORM\JoinColumn(name="contact_id", referencedColumnName="contact_id")
*/
//protected $contact;
/*
* @ORM\OneToOne(targetEntity="Contact", inversedBy="deliveryAddress")
* @ORM\JoinColumn(name="contact_id", referencedColumnName="contact_id")
*/
//protected $deliveryContact;
/**
* Get addressId
*
* @return integer
*/
public function getAddressId()
{
return $this->addressId;
}
/**
* Set street
*
* @param string $street
*
* @return Address
*/
public function setStreet($street)
{
$this->street = $street;
return $this;
}
/**
* Get street
*
* @return string
*/
public function getStreet()
{
return $this->street;
}
/**
* Set streetNumber
*
* @param string $streetNumber
*
* @return Address
*/
public function setStreetNumber($streetNumber)
{
$this->streetNumber = $streetNumber;
return $this;
}
/**
* Get streetNumber
*
* @return string
*/
public function getStreetNumber()
{
return $this->streetNumber;
}
/**
* 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 zipCode
*
* @param string $zipCode
*
* @return Address
*/
public function setZipCode($zipCode)
{
$this->zipCode = $zipCode;
return $this;
}
/**
* Get zipCode
*
* @return string
*/
public function getZipCode()
{
return $this->zipCode;
}
/**
* 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;
}
// public function getContact(): ?Contact
// {
// return $this->contact;
// }
// public function setContact(?Contact $contact): self
// {
// $this->contact = $contact;
//
// return $this;
// }
public function getDeliveryContact(): ?Contact
{
return $this->deliveryContact;
}
public function setDeliveryContact(?Contact $deliveryContact): self
{
$this->deliveryContact = $deliveryContact;
return $this;
}
}