GetClientProjects   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 1
Metric Value
wmc 1
c 3
b 0
f 1
lcom 0
cbo 1
dl 0
loc 30
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace Marek\Toggable\API\Http\Request\Client;
4
5
use Marek\Toggable\API\Http\Request\Request;
6
7
/**
8
 * Class GetClientProjects
9
 * @package Marek\Toggable\API\Http\Request\Client
10
 *
11
 * @property-read int $clientId
12
 * @property-read string $active
13
 */
14
class GetClientProjects extends Request
15
{
16
    /**
17
     * @var string
18
     */
19
    protected $uri = 'clients/{client_id}/projects?active={is_active}';
20
21
    /**
22
     * @var int
23
     */
24
    protected $clientId;
25
26
    /**
27
     * @var string
28
     */
29
    protected $active;
30
31
    /**
32
     * GetClientProjectsRequest constructor.
33
     *
34
     * @param array $properties
35
     */
36 5
    public function __construct(array $properties)
37
    {
38 5
        parent::__construct($properties);
39
40 5
        $this->uri = str_replace('{client_id}', $this->clientId, $this->uri);
41 5
        $this->uri = str_replace('{is_active}', $this->active, $this->uri);
42 5
    }
43
}
44