| 1 | <?php |
||
| 5 | final class Upgrade |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var Build |
||
| 9 | */ |
||
| 10 | private $build; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var Target |
||
| 14 | */ |
||
| 15 | private $target; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Upgrade constructor. |
||
| 19 | * |
||
| 20 | * @param $build |
||
| 21 | * @param $target |
||
| 22 | */ |
||
| 23 | public function __construct(Build $build, Target $target) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | public function getBuildVersion() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getTargetVersion() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getBuildFlav() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return string |
||
| 55 | */ |
||
| 56 | public function getTargetPath() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Returns possible file name for current context. |
||
| 63 | * |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | public function asFilename() |
||
| 70 | |||
| 71 | /** |
||
| 72 | * Returns Upgrade string representation. |
||
| 73 | * |
||
| 74 | * @return string |
||
| 75 | */ |
||
| 76 | public function __toString() |
||
| 80 | } |
||
| 81 |