| Total Complexity | 7 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class WorkcastApi |
||
| 20 | { |
||
| 21 | protected Auth $auth; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * WorkcastApi constructor. |
||
| 25 | */ |
||
| 26 | 3 | public function __construct(string $apiKey) |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return Auth |
||
| 33 | */ |
||
| 34 | 3 | public function getAuth(): Auth |
|
| 35 | { |
||
| 36 | 3 | return $this->auth; |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return Events |
||
| 41 | */ |
||
| 42 | 1 | public function events(): Events |
|
| 43 | { |
||
| 44 | 1 | return new Events($this->getAuth()); |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param int $eventId |
||
| 49 | * |
||
| 50 | * @return Sessions |
||
| 51 | */ |
||
| 52 | 1 | public function sessions(int $eventId): Sessions |
|
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @param int $eventId |
||
| 59 | * |
||
| 60 | * @return Contacts |
||
| 61 | */ |
||
| 62 | 1 | public function contacts(int $eventId): Contacts |
|
| 63 | { |
||
| 64 | 1 | return new Contacts($this->getAuth(), $eventId); |
|
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @param int $eventId |
||
| 69 | * |
||
| 70 | * @return Presenters |
||
| 71 | */ |
||
| 72 | 1 | public function presenters(int $eventId): Presenters |
|
| 75 | } |
||
| 76 | |||
| 77 | /** |
||
| 78 | * @return \LaravelWorkcast\RegistrationEndpoints\Register |
||
| 79 | */ |
||
| 80 | 1 | public function registerRequest(): Register |
|
| 85 |