| Total Complexity | 5 | 
| Total Lines | 53 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 9 | class GenerateInvitations extends Command  | 
            ||
| 10 | { | 
            ||
| 11 | /**  | 
            ||
| 12 | * The name and signature of the console command.  | 
            ||
| 13 | *  | 
            ||
| 14 | * @var string  | 
            ||
| 15 | */  | 
            ||
| 16 |     protected $signature = 'invites:generate {email?}  | 
            ||
| 17 |         {--a|allow=1 : Number of times the code can be used}  | 
            ||
| 18 |         {--c|count=1 : The number of codes to be generated} | 
            ||
| 19 |         {--d|days= : The number of days until expiry (preceeds hours option)} | 
            ||
| 20 |         {--r|hours= : Number of hours until expiry}'; | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * The console command description.  | 
            ||
| 24 | *  | 
            ||
| 25 | * @var string  | 
            ||
| 26 | */  | 
            ||
| 27 | protected $description = 'Generates invitation codes';  | 
            ||
| 28 | |||
| 29 | /**  | 
            ||
| 30 | * Create a new command instance.  | 
            ||
| 31 | *  | 
            ||
| 32 | * @return void  | 
            ||
| 33 | */  | 
            ||
| 34 | public function __construct()  | 
            ||
| 35 |     { | 
            ||
| 36 | parent::__construct();  | 
            ||
| 37 | }  | 
            ||
| 38 | |||
| 39 | /**  | 
            ||
| 40 | * Execute the console command.  | 
            ||
| 41 | *  | 
            ||
| 42 | * @return mixed  | 
            ||
| 43 | */  | 
            ||
| 44 | public function handle()  | 
            ||
| 62 | }  | 
            ||
| 63 | }  | 
            ||
| 64 |