1 | <?php namespace Arcanedev\LaravelApiHelper\Support; |
||
13 | abstract class Transformer |
||
14 | { |
||
15 | /* ----------------------------------------------------------------- |
||
16 | | Main Methods |
||
17 | | ----------------------------------------------------------------- |
||
18 | */ |
||
19 | /** |
||
20 | * Make the transformation. |
||
21 | * |
||
22 | * @param mixed $resource |
||
23 | * |
||
24 | * @return mixed |
||
25 | */ |
||
26 | 10 | public static function make($resource) |
|
30 | |||
31 | /** |
||
32 | * Handle the transformation. |
||
33 | * |
||
34 | * @param mixed $resource |
||
35 | * |
||
36 | * @return mixed |
||
37 | */ |
||
38 | 18 | public function handle($resource) |
|
53 | |||
54 | /** |
||
55 | * Invoke the transformer. |
||
56 | * |
||
57 | * @param mixed $resource |
||
58 | * |
||
59 | * @return mixed |
||
60 | */ |
||
61 | 12 | public function __invoke($resource) |
|
65 | |||
66 | /* ----------------------------------------------------------------- |
||
67 | | Other Methods |
||
68 | | ----------------------------------------------------------------- |
||
69 | */ |
||
70 | /** |
||
71 | * Check if the `transform` method exists. |
||
72 | */ |
||
73 | 18 | protected function checkTransformMethod() |
|
81 | } |
||
82 |
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.