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