LabelsEndpoint   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 2
b 0
f 0
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DigitalCz\DigiSign\Endpoint;
6
7
use DigitalCz\DigiSign\DigiSign;
8
use DigitalCz\DigiSign\Endpoint\Traits\CRUDEndpointTrait;
9
use DigitalCz\DigiSign\Resource\Label;
10
11
/**
12
 * @extends ResourceEndpoint<Label>
13
 * @method Label get(string $id)
14
 * @method Label create(array $body)
15
 * @method Label update(string $id, array $body)
16
 */
17
final class LabelsEndpoint extends ResourceEndpoint
18
{
19
    /** @use CRUDEndpointTrait<Label> */
20
    use CRUDEndpointTrait;
21
22
    public function __construct(DigiSign $parent)
23
    {
24
        parent::__construct($parent, '/api/labels', Label::class);
25
    }
26
}
27