Failed Conditions
Pull Request — release/1.0.0 (#8)
by Yo
01:35
created

ArrayDoc   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 23
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getItemValidation() 0 3 1
A setItemValidation() 0 5 1
1
<?php
2
namespace Yoanm\JsonRpcServerDoc\Domain\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 1
    public function setItemValidation(TypeDoc $itemValidation) : ArrayDoc
18
    {
19 1
        $this->itemValidation = $itemValidation;
20
21 1
        return $this;
22
    }
23
24
    /**
25
     * @return TypeDoc|null
26
     */
27 1
    public function getItemValidation()
28
    {
29 1
        return $this->itemValidation;
30
    }
31
}
32