Optimized for SPA

This commit is contained in:
Kevin Frantz
2019-01-05 23:52:37 +01:00
parent 9e685260e9
commit bccd6efaff
393 changed files with 253 additions and 37 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Logic\Operation;
use App\Logic\Result\ResultInterface;
/**
* @author kevinfrantz
*/
interface OperandInterface
{
/**
* Returns the result of the Operation.
*
* @return ResultInterface
*/
public function getResult(): ResultInterface;
}

View File

@@ -0,0 +1,23 @@
<?php
namespace App\Logic\Operation;
use Doctrine\Common\Collections\Collection;
/**
* @author kevinfrantz
*/
interface OperationInterface extends OperandInterface
{
/**
* Sets the Operators the operation has to deal with.
*
* @param Collection $operands | OperandInterface[]
*/
public function setOperands(Collection $operands): void;
/**
* Process the logic.
*/
public function process(): void;
}