| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class CreateMigrationPayload extends MigrationPayload |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var int |
||
| 14 | */ |
||
| 15 | protected $versionName; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * IndexMigrationPayload constructor. |
||
| 19 | * |
||
| 20 | * @param string $configurationPath |
||
| 21 | */ |
||
| 22 | public function __construct($configurationPath) |
||
| 23 | { |
||
| 24 | parent::__construct($configurationPath); |
||
| 25 | |||
| 26 | // Determine the index name |
||
| 27 | $this->versionName = time(); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function getVersionPath() |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return int |
||
| 40 | */ |
||
| 41 | public function getVersionName() |
||
| 42 | { |
||
| 43 | return $this->versionName; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function getIndexVersionName() |
||
| 49 | } |
||
| 50 | } |
||
| 51 |