| 1 | <?php |
||
| 7 | class FileNameBuilder |
||
| 8 | { |
||
| 9 | private $migrationName; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * Constructor. |
||
| 13 | * |
||
| 14 | * @param string $migrationName Migration name. |
||
| 15 | * |
||
| 16 | * @throws InvalidArgumentException If the $migrationName is missing or null. |
||
| 17 | */ |
||
| 18 | public function __construct($migrationName = null) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Build migration file name. |
||
| 28 | * |
||
| 29 | * @param datatype $timestamp Timestamp of migration. |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function build($timestamp = null) |
||
| 43 | } |
||
| 44 |