mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 22:37:28 +01:00
27 lines
358 B
PHP
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;
|
|
}
|
|
}
|