| 1 | <?php |
||
| 16 | abstract class Command extends BaseCommand |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Execute the console command. Here goes the command |
||
| 20 | * code. |
||
| 21 | * |
||
| 22 | * @return void |
||
| 23 | */ |
||
| 24 | abstract public function handle(): void; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Returns the application container. |
||
| 28 | * |
||
| 29 | * @return \Illuminate\Contracts\Container\Container |
||
| 30 | */ |
||
| 31 | public function getContainer(): Container |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Define the command's schedule. |
||
| 38 | * |
||
| 39 | * @param \Illuminate\Console\Scheduling\Schedule $schedule |
||
| 40 | * |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | public function schedule(Schedule $schedule): void |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Gets the concrete implementation of the notifier. Then |
||
| 49 | * creates a new notification and send it through the notifier. |
||
| 50 | * |
||
| 51 | * @param string $text |
||
| 52 | * @param string $body |
||
| 53 | * @param string|null $icon |
||
| 54 | */ |
||
| 55 | public function notify(string $text, string $body, $icon = null): void |
||
| 68 | } |
||
| 69 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.