infinito/application/src/Entity/Attribut/ConditionAttribut.php

32 lines
526 B
PHP
Raw Normal View History

2018-09-21 15:48:23 +02:00
<?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;
}
}