Failed Conditions
Pull Request — feature/init (#3)
by Yo
01:46
created

ArrayDoc::getItemValidation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Yoanm\JsonRpcServerDoc\Model\Type;
3
4
/**
5
 * Class ArrayDoc
6
 */
7
class ArrayDoc extends CollectionDoc
8
{
9
    /** @var TypeDoc|null */
10
    private $itemValidation = null;
11
12
    /**
13
     * @param TypeDoc $itemValidation
14
     *
15
     * @return ArrayDoc
16
     */
17
    public function setItemValidation(TypeDoc $itemValidation) : ArrayDoc
18
    {
19
        $this->itemValidation = $itemValidation;
20
21
        return $this;
22
    }
23
24
    /**
25
     * @return TypeDoc|null
26
     */
27
    public function getItemValidation()
28
    {
29
        return $this->itemValidation;
30
    }
31
}
32