35 lines
480 B
PHP
Raw Normal View History

2018-09-13 14:39:03 +02:00
<?php
2018-09-13 16:51:58 +02:00
2019-01-20 10:41:58 +01:00
namespace App\Attribut;
2018-09-13 14:39:03 +02:00
2018-10-28 15:25:32 +01:00
use App\Entity\Meta\LawInterface;
2018-09-13 14:39:03 +02:00
/**
* @author kevinfrantz
2019-01-27 18:38:21 +01:00
*
* @see LawAttributInterface
2018-09-13 14:39:03 +02:00
*/
2018-09-13 16:51:58 +02:00
trait LawAttribut
{
/**
2018-09-13 14:39:03 +02:00
* @var LawInterface
*/
protected $law;
2018-09-13 16:51:58 +02:00
2019-01-27 18:38:21 +01:00
/**
* @param LawInterface $law
*/
2018-09-13 16:51:58 +02:00
public function setLaw(LawInterface $law): void
{
2018-09-13 14:39:03 +02:00
$this->law = $law;
}
2018-09-13 16:51:58 +02:00
2019-01-27 18:38:21 +01:00
/**
* @return LawInterface
*/
2018-09-13 16:51:58 +02:00
public function getLaw(): LawInterface
{
2018-09-13 14:39:03 +02:00
return $this->law;
}
}