Test Failed
Push — master ( 156c37...627d8f )
by Zbigniew
03:20
created

FolderResponseModel::setKind()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of the zibios/wrike-php-jmsserializer package.
5
 *
6
 * (c) Zbigniew Ślązak
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Zibios\WrikePhpJmsserializer\Model\Folder;
13
14
use Zibios\WrikePhpJmsserializer\Model\ResponseModelInterface;
15
16
/**
17
 * Folder Response Model.
18
 */
19
class FolderResponseModel implements ResponseModelInterface
20
{
21
    /**
22
     * Kind of response.
23
     *
24
     * @SA\Type("string")
25
     * @SA\SerializedName("kind")
26
     *
27
     * @var string|null
28
     */
29
    protected $kind;
30
31
    /**
32
     * Collection of response models.
33
     *
34
     * @SA\Type("array<Zibios\WrikePhpJmsserializer\Model\Folder\FolderResourceModel>")
35
     * @SA\SerializedName("data")
36
     *
37
     * @var array|FolderResourceModel]|null
38
     */
39
    protected $data;
40
41
    /**
42
     * @return null|string
43
     */
44 1
    public function getKind()
45
    {
46 1
        return $this->kind;
47
    }
48
49
    /**
50
     * @param null|string $kind
51
     *
52
     * @return $this
53
     */
54 1
    public function setKind($kind)
55
    {
56 1
        $this->kind = $kind;
57
58 1
        return $this;
59
    }
60
61
    /**
62
     * @return array|FolderResourceModel[]|null
63
     */
64 1
    public function getData()
65
    {
66 1
        return $this->data;
67
    }
68
69
    /**
70
     * @param array|FolderResourceModel[]|null $data
71
     *
72
     * @return $this
73
     */
74 1
    public function setData($data)
75
    {
76 1
        $this->data = $data;
77
78 1
        return $this;
79
    }
80
}
81