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