infinito/application/src/Entity/Attribut/LawAttribut.php
2018-09-13 16:51:58 +02:00

27 lines
358 B
PHP

<?php
namespace App\Entity\Attribut;
use App\Entity\LawInterface;
/**
* @author kevinfrantz
*/
trait LawAttribut
{
/**
* @var LawInterface
*/
protected $law;
public function setLaw(LawInterface $law): void
{
$this->law = $law;
}
public function getLaw(): LawInterface
{
return $this->law;
}
}