mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-11 06:47:31 +01:00
28 lines
524 B
PHP
28 lines
524 B
PHP
<?php
|
|
namespace App\Entity\Attribut;
|
|
|
|
use App\Entity\SourceInterface;
|
|
|
|
/**
|
|
*
|
|
* @author kevinfrantz
|
|
*
|
|
*/
|
|
trait SourceAttribut {
|
|
/**
|
|
* @ORM\OneToOne(targetEntity="AbstractSource")
|
|
* @ORM\JoinColumn(name="source_id", referencedColumnName="id")
|
|
* @var SourceInterface
|
|
*/
|
|
protected $source;
|
|
|
|
public function getSource():SourceInterface{
|
|
return $this->source;
|
|
}
|
|
|
|
public function setSource(SourceInterface $source):void{
|
|
$this->source = $source;
|
|
}
|
|
}
|
|
|