mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-03-15 03:15:18 +01:00
37 lines
904 B
PHP
37 lines
904 B
PHP
<?php
|
|
|
|
namespace App\Entity\Source\Data\Name;
|
|
|
|
use App\Entity\Source\Data\AbstractDataSource;
|
|
use App\Entity\Attribut\NameAttribut;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
/**
|
|
* @author kevinfrantz
|
|
*
|
|
* @ORM\Entity
|
|
* @ORM\Table(name="source_data_name")
|
|
* @ORM\InheritanceType("SINGLE_TABLE")
|
|
* @ORM\DiscriminatorColumn(name="discr", type="string")
|
|
* @ORM\DiscriminatorMap({"nickname" = "NicknameSource","firstname" = "FirstNameSource", "surname" = "SurnameSource"})
|
|
*/
|
|
class AbstractNameSource extends AbstractDataSource implements NameSourceInterface
|
|
{
|
|
use NameAttribut;
|
|
|
|
/**
|
|
* @todo Implement an extra assert Layer! - maybe ;)
|
|
* @ORM\Column(type="string",length=255)
|
|
* @Assert\NotBlank()
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $name;
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
}
|