| 1 | <?php |
||
| 15 | class MigrationDefinition extends AbstractValue |
||
| 16 | { |
||
| 17 | const STATUS_TO_PARSE = 0; |
||
| 18 | const STATUS_PARSED = 1; |
||
| 19 | const STATUS_INVALID = 2; |
||
| 20 | |||
| 21 | protected $name; |
||
| 22 | protected $path; |
||
| 23 | protected $rawDefinition; |
||
| 24 | protected $status = 0; |
||
| 25 | protected $steps; |
||
| 26 | protected $parsingError; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $name |
||
| 30 | * @param string $path |
||
| 31 | * @param string $rawDefinition |
||
| 32 | * @param int $status |
||
| 33 | * @param MigrationStep[]|MigrationStepsCollection $steps |
||
| 34 | * @param string $parsingError |
||
| 35 | */ |
||
| 36 | 70 | public function __construct($name, $path, $rawDefinition, $status = 0, $steps = array(), $parsingError = null) |
|
| 45 | |||
| 46 | /** |
||
| 47 | * Allow the class to be serialized to php using var_export |
||
| 48 | * @param array $data |
||
| 49 | * @return static |
||
| 50 | */ |
||
| 51 | public static function __set_state(array $data) |
||
| 62 | } |
||
| 63 |