| 1 | <?php |
||
| 18 | class MethodNotFoundException extends \Exception |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * List of arguments, which was used to call method |
||
| 22 | * |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | protected $arguments; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Injected method name |
||
| 29 | * |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | protected $name; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Object with not-found injected method |
||
| 36 | * |
||
| 37 | * @var object |
||
| 38 | */ |
||
| 39 | protected $object; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * MethodNotFoundException constructor. |
||
| 43 | * @param $object |
||
| 44 | * @param string $name |
||
| 45 | * @param array $arguments |
||
| 46 | */ |
||
| 47 | 2 | public function __construct($object, string $name, array $arguments = []) |
|
| 54 | |||
| 55 | /** |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | 2 | protected function generateMessage() |
|
| 62 | |||
| 63 | /** |
||
| 64 | * @return object |
||
| 65 | */ |
||
| 66 | 1 | public function getObject() |
|
| 70 | |||
| 71 | /** |
||
| 72 | * @return string |
||
| 73 | */ |
||
| 74 | 1 | public function getName(): string |
|
| 78 | |||
| 79 | /** |
||
| 80 | * @return array |
||
| 81 | */ |
||
| 82 | 1 | public function getArguments(): array |
|
| 86 | } |
||
| 87 |