SanitizerArrayAnnotation   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 5 1
1
<?php
2
3
/**
4
 * This software package is licensed under AGPL or Commercial license.
5
 *
6
 * @package maslosoft/mangan
7
 * @licence AGPL or Commercial
8
 * @copyright Copyright (c) Piotr Masełkowski <[email protected]>
9
 * @copyright Copyright (c) Maslosoft
10
 * @copyright Copyright (c) Others as mentioned in code
11
 * @link https://maslosoft.com/mangan/
12
 */
13
14
namespace Maslosoft\Mangan\Annotations;
15
16
/**
17
 * Sanitizer. There cen be only one sanitizer
18
 * @template SanitizerArray(${SanitizerClass})
19
 * @Target('property')
20
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
21
 */
22
class SanitizerArrayAnnotation extends SanitizerAnnotation
23
{
24
25
	public $value = null;
26
27 2
	public function init()
28
	{
29 2
		parent::init();
30 2
		$this->getEntity()->sanitizeArray = true;
31 2
	}
32
33
}
34