| Total Complexity | 4 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | class Environment |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $app = null; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $host = null; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $tagged = null; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Environment constructor. |
||
| 30 | * @param string $app |
||
| 31 | * @param string $tagged |
||
| 32 | */ |
||
| 33 | public function __construct(string $app = 'app', string $tagged = '') |
||
| 34 | { |
||
| 35 | $this->app = $app; |
||
| 36 | $this->host = gethostname(); |
||
| 37 | $this->tagged = $tagged; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | public function app() : string |
||
| 44 | { |
||
| 45 | return $this->app; |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | public function host() : string |
||
| 52 | { |
||
| 53 | return $this->host; |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function tagged() : string |
||
| 62 | } |
||
| 63 | } |
||
| 64 |