Implemented new law draft

This commit is contained in:
Kevin Frantz
2018-09-21 15:48:23 +02:00
parent a4fdb07cb6
commit 54615a458e
24 changed files with 369 additions and 155 deletions

View 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;
}
}