Completed
Push — master ( cc8ae8...627a43 )
by Zbigniew
02:21
created

ResponseDocumentAbstract::setData()   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 0
Metric Value
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * This file is part of the WrikePhpSdk package.
4
 *
5
 * (c) Zbigniew Ślązak
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Zibios\WrikePhpSdk\Documents;
12
13
use JMS\Serializer\Annotation as SA;
14
15
/**
16
 * Response Document Abstract
17
 */
18
abstract class ResponseDocumentAbstract implements ResponseDocumentInterface
0 ignored issues
show
Coding Style introduced by
ResponseDocumentAbstract does not seem to conform to the naming convention (^Abstract|Factory$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
19
{
20
    /**
21
     * Kind of response
22
     *
23
     * @SA\Type("string")
24
     * @SA\SerializedName("kind")
25
     * @var string|null
26
     */
27
    protected $kind;
28
29
    /**
30
     * Collection of response documents
31
     *
32
     * @var array|ResourceDocumentInterface[]|null
33
     */
34
    protected $data;
35
36
    /**
37
     * @return null|string
38
     */
39 4
    public function getKind()
40
    {
41 4
        return $this->kind;
42
    }
43
44
    /**
45
     * @param null|string $kind
46
     *
47
     * @return $this
48
     */
49 4
    public function setKind($kind)
50
    {
51 4
        $this->kind = $kind;
52
53 4
        return $this;
54
    }
55
56
    /**
57
     * @return array|null|ResourceDocumentInterface[]
58
     */
59 24
    public function getData()
60
    {
61 24
        return $this->data;
62
    }
63
64
    /**
65
     * @param array|null|ResourceDocumentInterface[] $data
66
     *
67
     * @return $this
68
     */
69 4
    public function setData($data)
70
    {
71 4
        $this->data = $data;
72
73 4
        return $this;
74
    }
75
}
76