2018-09-14 14:12:43 +02:00
|
|
|
<?php
|
2018-09-14 14:39:47 +02:00
|
|
|
|
2018-11-04 11:53:36 +01:00
|
|
|
namespace App\Entity\Source\Data;
|
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
|
|
|
|
* @ORM\Table(name="source_name")
|
|
|
|
* @ORM\Entity(repositoryClass="App\Repository\NameSourceRepository")
|
|
|
|
*/
|
2018-11-04 11:53:36 +01:00
|
|
|
final class NameSource extends AbstractDataSource implements NameSourceInterface
|
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
|
|
|
/**
|
|
|
|
* @ORM\Column(type="string",length=255)
|
2018-09-17 13:09:04 +02:00
|
|
|
* @Assert\NotBlank()
|
2018-09-20 14:26:28 +02: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();
|
|
|
|
$this->name = '';
|
|
|
|
}
|
|
|
|
}
|