| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | final class Site |
||
| 9 | { |
||
| 10 | public ?string $url; |
||
| 11 | public ?string $name; |
||
| 12 | public ?string $language; |
||
| 13 | |||
| 14 | public function __construct() |
||
| 15 | { |
||
| 16 | $this->url = self::url(); |
||
| 17 | $this->name = self::name(); |
||
| 18 | $this->language = self::language(); |
||
| 19 | } |
||
| 20 | |||
| 21 | public static function url(): ?string |
||
| 22 | { |
||
| 23 | return config('site.url'); |
||
| 24 | } |
||
| 25 | |||
| 26 | public static function name(): ?string |
||
| 27 | { |
||
| 28 | return config('site.name'); |
||
| 29 | } |
||
| 30 | |||
| 31 | public static function language(): ?string |
||
| 34 | } |
||
| 35 | } |
||
| 36 |