Presenters   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 21
ccs 7
cts 7
cp 1
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A key() 0 3 1
A baseUrl() 0 3 1
1
<?php
2
namespace LaravelWorkcast\Endpoints;
3
4
use LaravelWorkcast\Auth;
5
6
class Presenters extends AbstractEndpoint implements HasRestFullRead
7
{
8
    use WithRestFullRead;
9
10
    protected int $eventId;
11
12 2
    public function __construct(Auth $auth, int $eventId)
13
    {
14 2
        $this->eventId = $eventId;
15
16 2
        parent::__construct($auth);
17
    }
18
19 1
    public function baseUrl(): string
20
    {
21 1
        return "events/{$this->eventId}/" . $this->key();
22
    }
23
24 1
    public function key(): string
25
    {
26 1
        return 'presenters';
27
    }
28
}
29