| 1 | <?php  | 
            ||
| 18 | class Upgrade  | 
            ||
| 19 | { | 
            ||
| 20 | /**  | 
            ||
| 21 | * Getopt.  | 
            ||
| 22 | *  | 
            ||
| 23 | * @var GetOpt  | 
            ||
| 24 | */  | 
            ||
| 25 | protected $getopt;  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * Logger.  | 
            ||
| 29 | *  | 
            ||
| 30 | * @var LoggerInterface  | 
            ||
| 31 | */  | 
            ||
| 32 | protected $logger;  | 
            ||
| 33 | |||
| 34 | /**  | 
            ||
| 35 | * Migration.  | 
            ||
| 36 | *  | 
            ||
| 37 | * @var Migrator  | 
            ||
| 38 | */  | 
            ||
| 39 | protected $migration;  | 
            ||
| 40 | |||
| 41 | /**  | 
            ||
| 42 | * Constructor.  | 
            ||
| 43 | *  | 
            ||
| 44 | * @param Migrator $migration  | 
            ||
| 45 | * @param LoggerInterface $logger  | 
            ||
| 46 | * @param GetOpt $getopt  | 
            ||
| 47 | */  | 
            ||
| 48 | public function __construct(Migrator $migration, LoggerInterface $logger, GetOpt $getopt)  | 
            ||
| 54 | |||
| 55 | /**  | 
            ||
| 56 | * Get description.  | 
            ||
| 57 | *  | 
            ||
| 58 | * @return string  | 
            ||
| 59 | */  | 
            ||
| 60 | public function getDescription(): string  | 
            ||
| 64 | |||
| 65 | /**  | 
            ||
| 66 | * Start.  | 
            ||
| 67 | *  | 
            ||
| 68 | * @return bool  | 
            ||
| 69 | */  | 
            ||
| 70 | public function start(): bool  | 
            ||
| 85 | }  | 
            ||
| 86 |