Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function testSetGetValue() |
||
32 | { |
||
33 | $this->assertEquals(ExpressionType::ARITHMETIC_OPERATION, $this->expressionType->getValue()); |
||
34 | $this->expressionType->setValue(ExpressionType::PARAMETER); |
||
|
|||
35 | $this->assertEquals(ExpressionType::PARAMETER, $this->expressionType->getValue()); |
||
36 | } |
||
37 | |||
45 |
If you implement
__call
and you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__call
is implemented by a parent class and only the child class knows which methods exist: