| Conditions | 4 |
| Paths | 4 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function execute() |
||
| 34 | { |
||
| 35 | $ref = new \ReflectionClass($this->class); |
||
| 36 | $method = $ref->getMethod($this->method); |
||
| 37 | $params = $method->getParameters(); |
||
| 38 | |||
| 39 | foreach ($params as $param) { |
||
| 40 | if ($param->getName() === $this->parameter) { |
||
| 41 | if ($param->isDefaultValueAvailable()) { |
||
| 42 | return $this->value === $param->getDefaultValue(); |
||
| 43 | } |
||
| 44 | } |
||
| 45 | } |
||
| 46 | |||
| 47 | return false; |
||
| 48 | } |
||
| 49 | |||
| 70 | } |