WorkspaceTasks   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 2
1
<?php
2
3
namespace Marek\Toggable\API\Http\Request\Workspace;
4
5
/**
6
 * Class WorkspaceTasks
7
 * @package Marek\Toggable\API\Http\Request\Workspace
8
 *
9
 * @property-read boolean $active
10
 */
11
class WorkspaceTasks extends Workspace
12
{
13
    /**
14
     * @var string
15
     */
16
    protected $uri = 'workspaces/{workspace_id}/tasks?active={active}';
17
18
    /**
19
     * @var boolean
20
     */
21
    protected $active = true;
22
23
    /**
24
     * WorkspaceTasks constructor.
25
     *
26
     * @param array $properties
27
     */
28 6
    public function __construct(array $properties)
29
    {
30 6
        parent::__construct($properties);
31
32 6
        $this->uri = str_replace('{active}', $this->active ? 'true' : 'false', $this->uri);
33 6
    }
34
}
35