| 1 | <?php |
||
| 13 | final class ExportEventStore extends Command |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * The name and signature of the console command. |
||
| 17 | * |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $signature = 'smoothphp:export'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * The console command description. |
||
| 24 | * |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $description = 'Export EventStore'; |
||
| 28 | |||
| 29 | /** @var DatabaseManager */ |
||
| 30 | private $databaseManager; |
||
| 31 | |||
| 32 | /** @var Repository */ |
||
| 33 | private $config; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * ExportEventStore constructor. |
||
| 37 | * @param DatabaseManager $databaseManager |
||
| 38 | * @param Repository $config |
||
| 39 | */ |
||
| 40 | public function __construct(DatabaseManager $databaseManager, Repository $config) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Execute the console command. |
||
| 49 | * |
||
| 50 | * @return mixed |
||
| 51 | */ |
||
| 52 | public function handle() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return \stdClass |
||
| 59 | */ |
||
| 60 | private function getAllEvents() |
||
| 67 | } |
||
| 68 |