| 1 | <?php |
||
| 23 | class Environment |
||
| 24 | { |
||
| 25 | /** @var string */ |
||
| 26 | protected $static_path; |
||
| 27 | /** @var string */ |
||
| 28 | protected $name; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Set path to static files for different environments |
||
| 32 | * |
||
| 33 | * @param string $static_path |
||
| 34 | * |
||
| 35 | * @return Environment |
||
| 36 | */ |
||
| 37 | public function setStaticPath($static_path) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Get path to static files for current environment |
||
| 46 | * |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function getStaticPath() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Set environment name |
||
| 56 | * |
||
| 57 | * @param string $name |
||
| 58 | * |
||
| 59 | * @return Environment |
||
| 60 | */ |
||
| 61 | public function setName($name) |
||
| 67 | |||
| 68 | /** |
||
| 69 | * Get environment name |
||
| 70 | * |
||
| 71 | * @return mixed |
||
| 72 | */ |
||
| 73 | public function getName() |
||
| 77 | } |
||
| 78 |