| Total Complexity | 4 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php // Copyright ⓒ 2018 Magneds IP B.V. - All Rights Reserved |
||
| 4 | class Language |
||
| 5 | { |
||
| 6 | /** |
||
| 7 | * @var string |
||
| 8 | */ |
||
| 9 | protected $iso; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $name; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var boolean |
||
| 18 | */ |
||
| 19 | protected $rtl; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Language constructor. |
||
| 23 | * @param string $iso |
||
| 24 | * @param string $name |
||
| 25 | * @param bool $rtl |
||
| 26 | */ |
||
| 27 | public function __construct(string $iso, string $name, bool $rtl) |
||
| 28 | { |
||
| 29 | $this->iso = $iso; |
||
| 30 | $this->name = $name; |
||
| 31 | $this->rtl = $rtl; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getIso(): string |
||
| 38 | { |
||
| 39 | return $this->iso; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | public function getName() |
||
| 46 | { |
||
| 47 | return $this->name; |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return bool |
||
| 52 | */ |
||
| 53 | public function isRtl() |
||
| 56 | } |
||
| 57 | } |
||
| 58 |