2018-09-14 14:12:43 +02:00
|
|
|
<?php
|
2018-09-14 14:39:47 +02:00
|
|
|
|
2018-11-10 17:25:48 +01:00
|
|
|
namespace App\Entity\Source\Data\Name;
|
2018-09-14 14:12:43 +02:00
|
|
|
|
|
|
|
use App\Entity\Attribut\NameAttribut;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
2018-09-17 13:09:04 +02:00
|
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
2018-09-14 14:12:43 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author kevinfrantz
|
2018-11-04 12:00:35 +01:00
|
|
|
* @ORM\Table(name="source_data_name")
|
2018-09-14 14:12:43 +02:00
|
|
|
* @ORM\Entity(repositoryClass="App\Repository\NameSourceRepository")
|
|
|
|
*/
|
2018-11-10 17:25:48 +01:00
|
|
|
final class NicknameSource extends AbstractNameSource implements NicknameSourceInterface
|
2018-09-14 14:12:43 +02:00
|
|
|
{
|
|
|
|
use NameAttribut;
|
2018-09-14 14:39:47 +02:00
|
|
|
|
2018-09-14 14:12:43 +02:00
|
|
|
/**
|
2018-11-10 17:25:48 +01:00
|
|
|
* @todo Implement an extra assert Layer!
|
2018-09-14 14:12:43 +02:00
|
|
|
* @ORM\Column(type="string",length=255)
|
2018-09-17 13:09:04 +02:00
|
|
|
* @Assert\NotBlank()
|
2018-11-10 12:30:59 +01:00
|
|
|
*
|
2018-09-14 14:12:43 +02:00
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $name;
|
|
|
|
|
2018-09-14 14:39:47 +02:00
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
parent::__construct();
|
|
|
|
}
|
|
|
|
}
|