| 1 | <?php |
||
| 10 | 1 | class Profile implements IProfile |
|
| 11 | { |
||
| 12 | /** @var string */ |
||
| 13 | private $name; |
||
| 14 | |||
| 15 | /** @var array */ |
||
| 16 | private $countries; |
||
| 17 | |||
| 18 | /** @var array */ |
||
| 19 | private $languages; |
||
| 20 | |||
| 21 | /** @var array */ |
||
| 22 | private $currencies; |
||
| 23 | |||
| 24 | /** @var array */ |
||
| 25 | private $domains; |
||
| 26 | |||
| 27 | /** @var bool */ |
||
| 28 | private $enabled = TRUE; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param string $name |
||
| 32 | * @param array $countries |
||
| 33 | * @param array $languages |
||
| 34 | * @param array $currencies |
||
| 35 | * @param array $domains |
||
| 36 | */ |
||
| 37 | public function __construct($name, array $countries, array $languages, array $currencies, array $domains) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param bool $enabled |
||
| 48 | * |
||
| 49 | * @return void |
||
| 50 | */ |
||
| 51 | public function setEnabled($enabled = TRUE) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return bool |
||
| 58 | */ |
||
| 59 | public function isEnabled() |
||
| 63 | |||
| 64 | |||
| 65 | /***************** interface \SixtyEightPublishers\Application\Environment\IProfile *****************/ |
||
| 66 | |||
| 67 | |||
| 68 | /** |
||
| 69 | * @return string |
||
| 70 | */ |
||
| 71 | public function getName() : string |
||
| 75 | |||
| 76 | /** |
||
| 77 | * @return array |
||
| 78 | */ |
||
| 79 | public function getCountries() : array |
||
| 83 | |||
| 84 | /** |
||
| 85 | * @return array |
||
| 86 | */ |
||
| 87 | public function getLanguages() : array |
||
| 91 | |||
| 92 | /** |
||
| 93 | * @return array |
||
| 94 | */ |
||
| 95 | public function getCurrencies() : array |
||
| 99 | |||
| 100 | /** |
||
| 101 | * @return array |
||
| 102 | */ |
||
| 103 | public function getDomains() : array |
||
| 107 | } |
||
| 108 |