| Total Complexity | 6 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class FileInstaller |
||
| 10 | { |
||
| 11 | /** @var FileMappingReaderInterface */ |
||
| 12 | private $mappingReader; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Constructor. |
||
| 16 | * |
||
| 17 | * @param FileMappingReaderInterface $mappingReader |
||
| 18 | */ |
||
| 19 | public function __construct(FileMappingReaderInterface $mappingReader) |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Install the deployer files. |
||
| 26 | * |
||
| 27 | * @param IOInterface $io |
||
| 28 | * |
||
| 29 | * @return void |
||
| 30 | * |
||
| 31 | * @SuppressWarnings(PHPMD.ShortVariable) |
||
| 32 | */ |
||
| 33 | public function install(IOInterface $io) |
||
| 46 | ) |
||
| 47 | ); |
||
| 48 | } |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Install the given file if it does not exist. |
||
| 53 | * |
||
| 54 | * @param FileMappingInterface $mapping |
||
| 55 | * |
||
| 56 | * @return void |
||
| 57 | * |
||
| 58 | * @SuppressWarnings(PHPMD.ShortVariable) |
||
| 59 | */ |
||
| 60 | public function installFile(FileMappingInterface $mapping) |
||
| 70 |