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

CreateMultipleProjectUsers::toArray()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 15
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

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