infinito/application/src/Entity/Attribut/SourceAttribut.php

28 lines
524 B
PHP
Raw Normal View History

2018-09-06 12:58:36 +02:00
<?php
2018-09-06 13:52:34 +02:00
namespace App\Entity\Attribut;
2018-09-06 12:58:36 +02:00
use App\Entity\SourceInterface;
/**
*
* @author kevinfrantz
*
*/
trait SourceAttribut {
/**
2018-09-06 14:52:01 +02:00
* @ORM\OneToOne(targetEntity="AbstractSource")
* @ORM\JoinColumn(name="source_id", referencedColumnName="id")
2018-09-06 12:58:36 +02:00
* @var SourceInterface
*/
protected $source;
public function getSource():SourceInterface{
return $this->source;
}
public function setSource(SourceInterface $source):void{
$this->source = $source;
}
}