| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class ProfileService extends CRUDServices |
||
| 9 | { |
||
| 10 | protected Profile $profile; |
||
| 11 | |||
| 12 | public function __construct() |
||
| 13 | { |
||
| 14 | try { |
||
| 15 | $this->profile = auth(config('faithgen-sdk.guard'))->user()->profile; |
||
|
|
|||
| 16 | } catch (\Exception $e) { |
||
| 17 | } |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Retrieves an instance of profile. |
||
| 22 | * |
||
| 23 | * @return \FaithGen\SDK\Models\Ministry\Profile |
||
| 24 | */ |
||
| 25 | public function getProfile(): Profile |
||
| 26 | { |
||
| 27 | return $this->profile; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * This sets the attributes to be removed from the given set for updating or creating. |
||
| 32 | * @return mixed |
||
| 33 | */ |
||
| 34 | public function getUnsetFields(): array |
||
| 37 | } |
||
| 38 | } |
||
| 39 |