mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Optimized Tests and attributes
This commit is contained in:
@@ -6,6 +6,8 @@ use App\Entity\Meta\LawInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*
|
||||
* @see LawAttributInterface
|
||||
*/
|
||||
trait LawAttribut
|
||||
{
|
||||
@@ -14,11 +16,17 @@ trait LawAttribut
|
||||
*/
|
||||
protected $law;
|
||||
|
||||
/**
|
||||
* @param LawInterface $law
|
||||
*/
|
||||
public function setLaw(LawInterface $law): void
|
||||
{
|
||||
$this->law = $law;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return LawInterface
|
||||
*/
|
||||
public function getLaw(): LawInterface
|
||||
{
|
||||
return $this->law;
|
||||
|
Reference in New Issue
Block a user