1 | <?php |
||
8 | class AddEndPoint extends Command |
||
9 | { |
||
10 | protected $uri; |
||
11 | /** |
||
12 | * The name and signature of the console command. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $signature = 'endpoint:add {endpoint : The Endpoint To Monitor} {--f|frequency=5 : The Frequency To Check This Endpoint, In Minutes} '; |
||
17 | |||
18 | /** |
||
19 | * The console command description. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $description = 'Add An Endpoint To Monitor'; |
||
24 | |||
25 | /** |
||
26 | * Create a new command instance. |
||
27 | * |
||
28 | * @return void |
||
|
|||
29 | */ |
||
30 | public function __construct() |
||
34 | |||
35 | /** |
||
36 | * Execute the console command. |
||
37 | * |
||
38 | * @return mixed |
||
39 | */ |
||
40 | public function handle() |
||
55 | |||
56 | protected function validateEndpoint() |
||
65 | |||
66 | protected function checkSelf() |
||
75 | } |
||
76 |
Adding a
@return
annotation 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.