File tree 3 files changed +11
-2
lines changed
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ abstract class Operator
23
23
protected $ operands = [];
24
24
25
25
/**
26
- * @param array $operands
26
+ * @param Proposition|VariableOperand ... $operands
27
27
*/
28
28
public function __construct (...$ operands )
29
29
{
@@ -55,7 +55,10 @@ public function getOperands(): array
55
55
return $ this ->operands ;
56
56
}
57
57
58
- abstract public function addOperand ($ operand );
58
+ /**
59
+ * @param Proposition|VariableOperand $operand
60
+ */
61
+ abstract public function addOperand ($ operand ): void ;
59
62
60
63
abstract protected function getOperandCardinality ();
61
64
}
Original file line number Diff line number Diff line change 19
19
*/
20
20
abstract class PropositionOperator extends BaseOperator
21
21
{
22
+ /**
23
+ * @param Proposition $operand
24
+ */
22
25
public function addOperand ($ operand ): void
23
26
{
24
27
$ this ->addProposition ($ operand );
Original file line number Diff line number Diff line change 19
19
*/
20
20
abstract class VariableOperator extends BaseOperator
21
21
{
22
+ /**
23
+ * @param VariableOperand $operand
24
+ */
22
25
public function addOperand ($ operand ): void
23
26
{
24
27
$ this ->addVariable ($ operand );
You can’t perform that action at this time.
0 commit comments