Passed
Push — master ( 0676a7...01ab94 )
by Artem
11:54
created

ManagedIssueRepository::getBaseUri()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
// ---------------------------------------------------------------------
4
//
5
//  Copyright (C) 2018-2024 Artem Rodygin
6
//
7
//  You should have received a copy of the MIT License along with
8
//  this file. If not, see <https://opensource.org/licenses/MIT>.
9
//
10
// ---------------------------------------------------------------------
11
12
namespace Linode\Managed\Repository;
13
14
use Linode\Entity;
15
use Linode\Internal\AbstractRepository;
16
use Linode\Managed\ManagedIssue;
17
use Linode\Managed\ManagedIssueRepositoryInterface;
18
19
/**
20
 * @codeCoverageIgnore This class was autogenerated.
21
 */
22
class ManagedIssueRepository extends AbstractRepository implements ManagedIssueRepositoryInterface
23
{
24
    protected function getBaseUri(): string
25
    {
26
        return '/managed/issues';
27
    }
28
29
    protected function getSupportedFields(): array
30
    {
31
        return [
32
            ManagedIssue::FIELD_ID,
33
            ManagedIssue::FIELD_CREATED,
34
            ManagedIssue::FIELD_SERVICES,
35
            ManagedIssue::FIELD_ENTITY,
36
        ];
37
    }
38
39
    protected function jsonToEntity(array $json): Entity
40
    {
41
        return new ManagedIssue($this->client, $json);
42
    }
43
}
44