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