Completed
Push — master ( e1ac32...9e0b8b )
by Mario
02:58
created

CreateMultipleProjectUsers   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 2
c 2
b 0
f 1
lcom 1
cbo 2
dl 0
loc 46
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A jsonSerialize() 0 4 1
1
<?php
2
3
namespace Marek\Toggable\API\Http\Request\ProjectUsers;
4
5
use Marek\Toggable\API\Http\Request\Request;
6
7
/**
8
 * Class CreateMultipleProjectUsers
9
 * @package Marek\Toggable\API\Http\Request\ProjectUser
10
 *
11
 * @property-read \Marek\Toggable\API\Toggl\Values\Project\User[] $projectUsers
12
 * @property-read \Marek\Toggable\API\Toggl\Values\Project\User $projectUser
13
 */
14
class CreateMultipleProjectUsers extends Request
15
{
16
    /**
17
     * @var string
18
     */
19
    public $uri = 'project_users';
20
21
    /**
22
     * @var string
23
     */
24
    public $method = Request::POST;
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function jsonSerialize()
30
    {
31
        return array('project_user' => $this->data);
32
    }
33
}
34