name = $name; $this->path = $path; $this->rawDefinition = $rawDefinition; $this->status = $status; $this->steps = ($steps instanceof MigrationStepsCollection) ? $steps : new MigrationStepsCollection($steps); $this->parsingError = $parsingError; } /** * Allow the class to be serialized to php using var_export * @param array $data * @return static */ public static function __set_state(array $data) { return new static( $data['name'], $data['path'], $data['rawDefinition'], $data['status'], $data['steps'], $data['parsingError'] ); } }