mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-17 23:56:03 +02:00
Implemented new law draft
This commit is contained in:
31
application/src/Entity/Attribut/ConditionAttribut.php
Normal file
31
application/src/Entity/Attribut/ConditionAttribut.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity\Attribut;
|
||||
|
||||
use App\Logic\Operation\OperationInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
trait ConditionAttribut
|
||||
{
|
||||
/**
|
||||
* @var OperationInterface
|
||||
*/
|
||||
protected $condition;
|
||||
|
||||
public function getCondition(): OperationInterface
|
||||
{
|
||||
return $this->condition;
|
||||
}
|
||||
|
||||
public function setCondition(OperationInterface $condition): void
|
||||
{
|
||||
$this->condition = $condition;
|
||||
}
|
||||
|
||||
public function hasCondition(): bool
|
||||
{
|
||||
return $this->condition;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user