Total Complexity | 8 |
Total Lines | 74 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
7 | class StringDoc extends ScalarDoc |
||
8 | { |
||
9 | /*** Validation ***/ |
||
10 | /** @var null|bool */ |
||
11 | private $blankAllowed = null; |
||
12 | /** @var null|string */ |
||
13 | private $format = null; |
||
14 | /** @var null|int|float */ |
||
15 | private $minLength = null; |
||
16 | /** @var null|int|float */ |
||
17 | private $maxLength = null; |
||
18 | |||
19 | /** |
||
20 | * @param bool|null $blankAllowed |
||
21 | */ |
||
22 | public function setBlankAllowed($blankAllowed) |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @param null|string $format |
||
29 | */ |
||
30 | public function setFormat($format) |
||
31 | { |
||
32 | $this->format = $format; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param null $minLength |
||
|
|||
37 | */ |
||
38 | public function setMinLength($minLength) |
||
39 | { |
||
40 | $this->minLength = $minLength; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @param null|bool $maxLength |
||
45 | */ |
||
46 | public function setMaxLength($maxLength) |
||
47 | { |
||
48 | $this->maxLength = $maxLength; |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @return bool|null |
||
53 | */ |
||
54 | public function isBlankAllowed() |
||
55 | { |
||
56 | return $this->blankAllowed; |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * @return null|string |
||
61 | */ |
||
62 | public function getFormat() |
||
63 | { |
||
64 | return $this->format; |
||
65 | } |
||
66 | |||
67 | /** |
||
68 | * @return null|bool |
||
69 | */ |
||
70 | public function getMinLength() |
||
71 | { |
||
72 | return $this->minLength; |
||
73 | } |
||
74 | |||
75 | /** |
||
76 | * @return null|bool |
||
77 | */ |
||
78 | public function getMaxLength() |
||
81 | } |
||
82 | } |
||
83 |