Overview

Namespaces

  • Composer
    • Autoload
  • Illuminate
    • Support
      • Contracts
      • Facades
  • Laravella
    • Cart
      • Facades
  • None
  • PHP

Classes

  • CartInstallCommand
  • CartServiceProvider
  • CartUpdateCommand
  • DbGopher
  • MysqlGopher
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php namespace Laravella\Cart;
 2: 
 3: use Illuminate\Console\Command;
 4: use Symfony\Component\Console\Input\InputOption;
 5: use Symfony\Component\Console\Input\InputArgument;
 6: 
 7: class CartUpdateCommand extends Command {
 8: 
 9:     /**
10:      * The console command name.
11:      *
12:      * @var string
13:      */
14:     protected $name = 'cart:update';
15: 
16:     /**
17:      * The console command description.
18:      *
19:      * @var string
20:      */
21:     protected $description = 'Update the shopping cart.';
22: 
23:     /**
24:      * Create a new command instance.
25:      *
26:      * @return void
27:      */
28:     public function __construct()
29:     {
30:         parent::__construct();
31:     }
32: 
33:     /**
34:      * Execute the console command.
35:      *
36:      * @return void
37:      */
38:     public function fire()
39:     {
40:         $this->info('Update complete.');
41:     }
42: 
43:     /**
44:      * Get the console command arguments.
45:      *
46:      * @return array
47:      */
48:     protected function getArguments()
49:     {
50:         return array(
51:             array('example', InputArgument::REQUIRED, 'An example argument.'),
52:         );
53:     }
54: 
55:     /**
56:      * Get the console command options.
57:      *
58:      * @return array
59:      */
60:     protected function getOptions()
61:     {
62:         return array(
63:             array('example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null),
64:         );
65:     }
66: 
67: }
cart API documentation generated by ApiGen 2.8.0