mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-10-31 09:19:08 +00:00 
			
		
		
		
	Refactored function
This commit is contained in:
		| @@ -18,7 +18,7 @@ use App\Exception\NotProcessedException; | ||||
|  * @ORM\DiscriminatorColumn(name="discr", type="string") | ||||
|  * @ORM\DiscriminatorMap({"and" = "AndOperation"}) | ||||
|  */ | ||||
| abstract class AbstractOperation extends AbstractSource implements OperandInterface | ||||
| abstract class AbstractOperation extends AbstractSource implements OperationInterface | ||||
| { | ||||
|     use OperandsAttribut; | ||||
|  | ||||
| @@ -47,9 +47,4 @@ abstract class AbstractOperation extends AbstractSource implements OperandInterf | ||||
|         } | ||||
|         throw new NotProcessedException('No result was generated!'); | ||||
|     } | ||||
|  | ||||
|     public function setOperators(ArrayCollection $operands): void | ||||
|     { | ||||
|         $this->operands = $operands; | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -2,7 +2,7 @@ | ||||
|  | ||||
| namespace App\Logic\Operation; | ||||
|  | ||||
| use Doctrine\Common\Collections\ArrayCollection; | ||||
| use Doctrine\Common\Collections\Collection; | ||||
|  | ||||
| /** | ||||
|  * @author kevinfrantz | ||||
| @@ -12,9 +12,9 @@ interface OperationInterface extends OperandInterface | ||||
|     /** | ||||
|      * 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. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user