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

ResponseDocumentAbstract   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 58
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 58
ccs 10
cts 10
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getData() 0 4 1
A getKind() 0 4 1
A setKind() 0 6 1
A setData() 0 6 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