Refactored\moved Attribut folder

This commit is contained in:
Kevin Frantz
2019-01-20 10:41:58 +01:00
parent 5301be7614
commit e695aa26ea
122 changed files with 223 additions and 223 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace App\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 instanceof OperationInterface;
}
}