| 1 | <?php |
||
| 8 | final class Site implements SiteInterface |
||
| 9 | { |
||
| 10 | |||
| 11 | /** @var string The path to the webroot */ |
||
| 12 | private $path; |
||
| 13 | |||
| 14 | /** @var string The version number */ |
||
| 15 | private $version; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return mixed |
||
| 19 | */ |
||
| 20 | 9 | public function getPath() |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @param mixed $path |
||
| 27 | * @return Site |
||
| 28 | */ |
||
| 29 | 15 | public function setPath($path) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | 3 | public function getVersion() |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $version |
||
| 45 | * @return Site |
||
| 46 | */ |
||
| 47 | 15 | public function setVersion($version) |
|
| 52 | |||
| 53 | /** |
||
| 54 | * A simple factory method for creating a site object |
||
| 55 | * |
||
| 56 | * @param string $path |
||
| 57 | * @param string $version |
||
| 58 | * @return Site |
||
| 59 | */ |
||
| 60 | 12 | public static function create($path = '', $version = '') |
|
| 64 | } |
||
| 65 |