| Total Complexity | 7 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class OrganizationService extends AbstractService |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Retrieve the Organization's name |
||
| 13 | * |
||
| 14 | * @return string|null |
||
| 15 | */ |
||
| 16 | public static function name(): ?string |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Retrieve the Organization's logo |
||
| 23 | * |
||
| 24 | * @return string|null |
||
| 25 | */ |
||
| 26 | public static function logo(): ?string |
||
| 27 | { |
||
| 28 | return config('users.org.logo'); |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Retrieve an OrganizationAddressService instance for accessing the address |
||
| 33 | * |
||
| 34 | * @return OrganizationAddressService |
||
| 35 | */ |
||
| 36 | public static function address(): OrganizationAddressService |
||
| 37 | { |
||
| 38 | return new OrganizationAddressService(); |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Retrieve the Organization's phone number |
||
| 43 | * |
||
| 44 | * @param bool $href |
||
| 45 | * @return string|null |
||
| 46 | */ |
||
| 47 | public static function phone(bool $href = false): ?string |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Retrieve the Organization's email address |
||
| 60 | * |
||
| 61 | * @param bool $href |
||
| 62 | * @return string|null |
||
| 63 | */ |
||
| 64 | public static function email(bool $href = false): ?string |
||
| 73 | } |
||
| 74 | } |
||
| 75 |