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

ArrayDoc   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 22
ccs 0
cts 8
cp 0
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\Model\Type;
3
4
/**
5
 * Class ArrayDoc
6
 */
7
class ArrayDoc extends CollectionDoc
8
{
9
    /** @var TypeDoc|null */
10
    private $itemValidation;
11
12
    /**
13
     * @param TypeDoc $itemValidation
14
     * @return ArrayDoc
15
     */
16
    public function setItemValidation(TypeDoc $itemValidation) : ArrayDoc
17
    {
18
        $this->itemValidation = $itemValidation;
19
20
        return $this;
21
    }
22
23
    /**
24
     * @return TypeDoc|null
25
     */
26
    public function getItemValidation()
27
    {
28
        return $this->itemValidation;
29
    }
30
}
31