mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-08-21 19:25:03 +02:00
30 lines
528 B
PHP
30 lines
528 B
PHP
<?php
|
|
|
|
namespace App\Entity\Attribut;
|
|
|
|
use App\Entity\Source\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;
|
|
}
|
|
}
|