| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 8 | class ReleaseCounter implements MongoDbMigrations\MigrationInterface, MongoDbMigrations\RunAlwaysMigrationInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * {@inheritdoc} |
||
| 12 | */ |
||
| 13 | public function getId(): string |
||
| 14 | { |
||
| 15 | return 'release-counter'; |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * {@inheritdoc} |
||
| 20 | */ |
||
| 21 | public function getCreateDate(): \DateTime |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Create one record per release |
||
| 28 | * |
||
| 29 | * {@inheritdoc} |
||
| 30 | */ |
||
| 31 | public function execute(MongoDB\Database $db) |
||
| 35 | } |
||
| 36 | } |
||
| 37 |