| 1 | <?php |
||
| 19 | abstract class Process |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var \phpbu\App\Factory |
||
| 23 | */ |
||
| 24 | protected $factory; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * phpbu Result |
||
| 28 | * |
||
| 29 | * @var \phpbu\App\Result |
||
| 30 | */ |
||
| 31 | protected $result; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * phpbu Configuration |
||
| 35 | * |
||
| 36 | * @var \phpbu\App\Configuration |
||
| 37 | */ |
||
| 38 | protected $configuration; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Backup constructor. |
||
| 42 | * |
||
| 43 | * @param \phpbu\App\Factory $factory |
||
| 44 | * @param \phpbu\App\Result $result |
||
| 45 | */ |
||
| 46 | 13 | public function __construct(Factory $factory, Result $result) |
|
| 51 | |||
| 52 | /** |
||
| 53 | * Execution blueprint. |
||
| 54 | * |
||
| 55 | * @param \phpbu\App\Configuration $configuration |
||
| 56 | * @return \phpbu\App\Result |
||
| 57 | */ |
||
| 58 | abstract public function run(Configuration $configuration) : Result; |
||
| 59 | } |
||
| 60 |