Total Complexity | 7 |
Total Lines | 64 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class OrganizationService |
||
6 | { |
||
7 | /** |
||
8 | * Retrieve the Organization's name. |
||
9 | * |
||
10 | * @return string|null |
||
11 | */ |
||
12 | public static function name(): ?string |
||
15 | } |
||
16 | |||
17 | /** |
||
18 | * Retrieve the Organization's logo. |
||
19 | * |
||
20 | * @return string|null |
||
21 | */ |
||
22 | public static function logo(): ?string |
||
23 | { |
||
24 | return config('users.org.logo'); |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Retrieve an OrganizationAddressService instance for accessing the address. |
||
29 | * |
||
30 | * @return OrganizationAddressService |
||
31 | */ |
||
32 | public static function address(): OrganizationAddressService |
||
33 | { |
||
34 | return new OrganizationAddressService(); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Retrieve the Organization's phone number. |
||
39 | * |
||
40 | * @param bool $href |
||
41 | * @return string|null |
||
42 | */ |
||
43 | public static function phone(bool $href = false): ?string |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * Retrieve the Organization's email address. |
||
56 | * |
||
57 | * @param bool $href |
||
58 | * @return string|null |
||
59 | */ |
||
60 | public static function email(bool $href = false): ?string |
||
69 | } |
||
70 | } |
||
71 |