o2system /
carbon
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * This file is part of the O2System PHP Framework package. |
||
| 4 | * |
||
| 5 | * For the full copyright and license information, please view the LICENSE |
||
| 6 | * file that was distributed with this source code. |
||
| 7 | * |
||
| 8 | * @author Steeve Andrian Salim |
||
| 9 | * @copyright Copyright (c) Steeve Andrian Salim |
||
| 10 | */ |
||
| 11 | // ------------------------------------------------------------------------ |
||
| 12 | |||
| 13 | namespace App\Commanders; |
||
| 14 | |||
| 15 | // ------------------------------------------------------------------------ |
||
| 16 | |||
| 17 | use App\Cli\Commander; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Class Hello |
||
| 21 | * |
||
| 22 | * @package App\Commanders |
||
| 23 | */ |
||
| 24 | class Hello extends Commander |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Hello::$commandVersion |
||
| 28 | * |
||
| 29 | * Command version. |
||
| 30 | * |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | protected $commandVersion = '1.0.0'; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Hello::$commandDescription |
||
| 37 | * |
||
| 38 | * Command description. |
||
| 39 | * |
||
| 40 | * @var string |
||
| 41 | */ |
||
| 42 | protected $commandDescription = 'Hello World Example'; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Hello::$commandOptions |
||
| 46 | * |
||
| 47 | * Command options. |
||
| 48 | * |
||
| 49 | * @var array |
||
| 50 | */ |
||
| 51 | protected $commandOptions = [ |
||
| 52 | 'name' => [ |
||
| 53 | 'description' => 'Please input your name.', |
||
| 54 | 'required' => true, |
||
| 55 | ] |
||
| 56 | ]; |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Hello::$optionName |
||
| 60 | * |
||
| 61 | * @var string |
||
| 62 | */ |
||
| 63 | protected $optionName = null; |
||
| 64 | |||
| 65 | // ------------------------------------------------------------------------ |
||
| 66 | |||
| 67 | /** |
||
| 68 | * Hello::optionName |
||
| 69 | * |
||
| 70 | * @param string $name Option name parameter |
||
| 71 | * @return void |
||
| 72 | */ |
||
| 73 | public function optionName( $name ) |
||
| 74 | { |
||
| 75 | $this->optionName = ucfirst ( trim( $name ) ); |
||
| 76 | } |
||
| 77 | |||
| 78 | // ------------------------------------------------------------------------ |
||
| 79 | |||
| 80 | /** |
||
| 81 | * Hello::execute |
||
| 82 | * |
||
| 83 | * @return void |
||
| 84 | */ |
||
| 85 | public function execute() |
||
| 86 | { |
||
| 87 | $this->__callOptions(); |
||
| 88 | |||
| 89 | output()->write('Hello !'); |
||
|
0 ignored issues
–
show
|
|||
| 90 | } |
||
| 91 | } |
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.