| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Stage implements StageInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var callable |
||
| 16 | */ |
||
| 17 | protected $callback; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var Stage|null |
||
| 21 | */ |
||
| 22 | protected $next; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Stage constructor. |
||
| 26 | * |
||
| 27 | * @param $callback |
||
| 28 | * @param Stage|null $next |
||
| 29 | */ |
||
| 30 | 1 | public function __construct($callback, self $next = null) |
|
| 31 | { |
||
| 32 | 1 | $this->callback = $callback; |
|
| 33 | 1 | $this->next = $next; |
|
| 34 | 1 | } |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @param $payload |
||
| 38 | * |
||
| 39 | * @return mixed |
||
| 40 | */ |
||
| 41 | 1 | public function handle($payload) |
|
| 50 | 1 | }); |
|
| 51 | } |
||
| 53 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.