Completed
Push — master ( 31c517...eacb98 )
by Peter
23:10 queued 16:01
created

ClassValidator::isValid()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
cc 1
eloc 1
nc 1
nop 2
crap 2
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 http://maslosoft.com/mangan/
12
 */
13
14
namespace Maslosoft\Mangan\Validators\BuiltIn;
15
16
use Maslosoft\Mangan\Interfaces\Validators\ValidatorInterface;
17
18
/**
19
 * This validator forwards validation to specified class.
20
 *
21
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
22
 */
23
class ClassValidator implements ValidatorInterface
24
{
25
26
	use \Maslosoft\Mangan\Validators\Traits\AllowEmpty,
27
	  \Maslosoft\Mangan\Validators\Traits\Messages,
28
	  \Maslosoft\Mangan\Validators\Traits\Strict,
29
	  \Maslosoft\Mangan\Validators\Traits\OnScenario,
30
	  \Maslosoft\Mangan\Validators\Traits\Safe;
31
32
	public $class = '';
33
34
	public function isValid(\Maslosoft\Addendum\Interfaces\AnnotatedInterface $model, $attribute)
35
	{
36
37
	}
38
39
}
40