infinito/application/src/Entity/Source/Data/Name/AbstractNameSource.php

37 lines
904 B
PHP
Raw Normal View History

2018-11-10 17:25:48 +01:00
<?php
2018-11-10 17:25:48 +01:00
namespace App\Entity\Source\Data\Name;
use App\Entity\Source\Data\AbstractDataSource;
use App\Entity\Attribut\NameAttribut;
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
/**
* @author kevinfrantz
*
* @ORM\Entity
* @ORM\Table(name="source_data_name")
* @ORM\InheritanceType("SINGLE_TABLE")
* @ORM\DiscriminatorColumn(name="discr", type="string")
2018-11-15 19:55:03 +01:00
* @ORM\DiscriminatorMap({"nickname" = "NicknameSource","firstname" = "FirstNameSource", "surname" = "SurnameSource"})
*/
2018-11-20 22:04:29 +01:00
class AbstractNameSource extends AbstractDataSource implements NameSourceInterface
2018-11-10 17:25:48 +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
}