1 | <?php |
||
18 | abstract class ResponseDocumentAbstract implements ResponseDocumentInterface |
||
|
|||
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() |
|
63 | |||
64 | /** |
||
65 | * @param array|null|ResourceDocumentInterface[] $data |
||
66 | * |
||
67 | * @return $this |
||
68 | */ |
||
69 | 4 | public function setData($data) |
|
75 | } |
||
76 |
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.