2018-11-10 17:25:48 +01:00
|
|
|
<?php
|
2018-11-10 12:30:59 +01:00
|
|
|
|
2018-11-10 17:25:48 +01:00
|
|
|
namespace App\Entity\Source\Data\Name;
|
|
|
|
|
|
|
|
use App\Entity\Source\Data\AbstractDataSource;
|
2018-11-11 21:24:54 +01:00
|
|
|
use App\Entity\Attribut\NameAttribut;
|
2018-11-11 21:36:23 +01:00
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
2018-11-15 19:55:03 +01:00
|
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
2018-11-10 17:25:48 +01:00
|
|
|
|
2018-11-11 21:36:23 +01:00
|
|
|
/**
|
|
|
|
* @author kevinfrantz
|
|
|
|
*
|
|
|
|
* @ORM\Entity
|
|
|
|
* @ORM\Table(name="source_data_name")
|
2018-11-12 21:57:09 +01:00
|
|
|
* @ORM\InheritanceType("SINGLE_TABLE")
|
2018-11-11 21:36:23 +01:00
|
|
|
* @ORM\DiscriminatorColumn(name="discr", type="string")
|
2018-11-15 19:55:03 +01:00
|
|
|
* @ORM\DiscriminatorMap({"nickname" = "NicknameSource","firstname" = "FirstNameSource", "surname" = "SurnameSource"})
|
2018-11-11 21:36:23 +01:00
|
|
|
*/
|
2018-11-11 21:12:21 +01:00
|
|
|
abstract class AbstractNameSource extends AbstractDataSource implements NameSourceInterface
|
2018-11-10 17:25:48 +01:00
|
|
|
{
|
2018-11-11 21:24:54 +01:00
|
|
|
use NameAttribut;
|
2018-11-15 19:55:03 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @todo Implement an extra assert Layer! - maybe ;)
|
|
|
|
* @ORM\Column(type="string",length=255)
|
|
|
|
* @Assert\NotBlank()
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $name;
|
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
parent::__construct();
|
|
|
|
}
|
2018-11-10 17:25:48 +01:00
|
|
|
}
|