mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-11 06:47:31 +01:00
27 lines
375 B
PHP
27 lines
375 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;
|
||
|
}
|
||
|
}
|
||
|
|