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

CreateMultipleProjectUsers::jsonSerialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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