infinito/application/src/Entity/Attribut/LawAttribut.php

27 lines
358 B
PHP
Raw Normal View History

2018-09-13 14:39:03 +02:00
<?php
2018-09-13 16:51:58 +02:00
2018-09-13 14:39:03 +02:00
namespace App\Entity\Attribut;
use App\Entity\LawInterface;
/**
* @author kevinfrantz
*/
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
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
public function getLaw(): LawInterface
{
2018-09-13 14:39:03 +02:00
return $this->law;
}
}