| 1 | <?php |
||
| 7 | class Application extends BaseApplication |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | private static $logo = " ___ ___ _ |
||
| 13 | / _ \/ __\_____ _| |_ _ __ ___ _ __ ___ ___ |
||
| 14 | / /_)/ / / _ \ \/ / __| '__/ _ \ '_ ` _ \ / _ \ |
||
| 15 | / ___/ /__| __/> <| |_| | | __/ | | | | | __/ |
||
| 16 | \/ \____/\___/_/\_\\\__|_| \___|_| |_| |_|\___| |
||
| 17 | |||
| 18 | "; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Create a new instance of the application. |
||
| 22 | * |
||
| 23 | * @return void |
||
|
|
|||
| 24 | */ |
||
| 25 | public function __construct() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Gets the help message. |
||
| 32 | * |
||
| 33 | * @return string A help message |
||
| 34 | */ |
||
| 35 | public function getHelp() |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Gets the default commands that should always be available. |
||
| 42 | * |
||
| 43 | * @return array |
||
| 44 | */ |
||
| 45 | protected function getDefaultCommands() |
||
| 53 | } |
||
| 54 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.