mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-09 22:17:26 +01:00
Refactored function
This commit is contained in:
parent
4678e14b34
commit
5e6b8bccbe
@ -18,7 +18,7 @@ use App\Exception\NotProcessedException;
|
|||||||
* @ORM\DiscriminatorColumn(name="discr", type="string")
|
* @ORM\DiscriminatorColumn(name="discr", type="string")
|
||||||
* @ORM\DiscriminatorMap({"and" = "AndOperation"})
|
* @ORM\DiscriminatorMap({"and" = "AndOperation"})
|
||||||
*/
|
*/
|
||||||
abstract class AbstractOperation extends AbstractSource implements OperandInterface
|
abstract class AbstractOperation extends AbstractSource implements OperationInterface
|
||||||
{
|
{
|
||||||
use OperandsAttribut;
|
use OperandsAttribut;
|
||||||
|
|
||||||
@ -47,9 +47,4 @@ abstract class AbstractOperation extends AbstractSource implements OperandInterf
|
|||||||
}
|
}
|
||||||
throw new NotProcessedException('No result was generated!');
|
throw new NotProcessedException('No result was generated!');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setOperators(ArrayCollection $operands): void
|
|
||||||
{
|
|
||||||
$this->operands = $operands;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Logic\Operation;
|
namespace App\Logic\Operation;
|
||||||
|
|
||||||
use Doctrine\Common\Collections\ArrayCollection;
|
use Doctrine\Common\Collections\Collection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author kevinfrantz
|
* @author kevinfrantz
|
||||||
@ -12,9 +12,9 @@ interface OperationInterface extends OperandInterface
|
|||||||
/**
|
/**
|
||||||
* Sets the Operators the operation has to deal with.
|
* Sets the Operators the operation has to deal with.
|
||||||
*
|
*
|
||||||
* @param ArrayCollection $operands | OperandInterface[]
|
* @param Collection $operands | OperandInterface[]
|
||||||
*/
|
*/
|
||||||
public function setOperators(ArrayCollection $operands): void;
|
public function setOperands(Collection $operands): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Process the logic.
|
* Process the logic.
|
||||||
|
Loading…
Reference in New Issue
Block a user