2018-09-06 13:52:34 +02:00
|
|
|
<?php
|
2018-09-12 22:25:22 +02:00
|
|
|
|
2018-09-13 22:35:32 +02:00
|
|
|
namespace Entity\Attribut;
|
2018-09-06 13:52:34 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author kevinfrantz
|
|
|
|
*/
|
2018-09-12 22:25:22 +02:00
|
|
|
trait ParentAttribut
|
|
|
|
{
|
2018-09-06 13:52:34 +02:00
|
|
|
/**
|
2018-09-13 22:35:32 +02:00
|
|
|
* @var ParentAttributInterface
|
2018-09-06 13:52:34 +02:00
|
|
|
*/
|
2018-09-13 22:35:32 +02:00
|
|
|
protected $parent;
|
2018-09-06 15:14:33 +02:00
|
|
|
|
2018-09-13 22:35:32 +02:00
|
|
|
public function setParent(ParentAttributInterface $parent): void
|
2018-09-06 13:52:34 +02:00
|
|
|
{
|
2018-09-13 22:35:32 +02:00
|
|
|
$this->parent = $parent;
|
2018-09-06 13:52:34 +02:00
|
|
|
}
|
2018-09-06 15:14:33 +02:00
|
|
|
|
2018-09-13 22:35:32 +02:00
|
|
|
public function getParent(): ParentAttributInterface
|
2018-09-06 13:52:34 +02:00
|
|
|
{
|
2018-09-13 22:35:32 +02:00
|
|
|
return $this->parent;
|
2018-09-06 13:52:34 +02:00
|
|
|
}
|
|
|
|
}
|