<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
*
* @ORM\Table(name="delivery_location")
*/
class Location implements \Stringable
{
public const TYPE_FRENCH_DEPARTMENT = 'french-department';
public const TYPE_OTHER = 'other';
/**
* @ORM\Id
*
* @ORM\GeneratedValue
*
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string")
*/
private $name;
/**
* @ORM\Column(type="string")
*/
private $type;
public function __toString(): string
{
return (string) $this->name;
}
public function getId()
{
return $this->id;
}
public function setName($name): void
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setType($type): void
{
$this->type = $type;
}
public function getType()
{
return $this->type;
}
}