mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2026-01-12 10:06:54 +00:00
Optimized for SPA
This commit is contained in:
18
application/symfony/src/Logic/Operation/OperandInterface.php
Normal file
18
application/symfony/src/Logic/Operation/OperandInterface.php
Normal 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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user