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

ClassValidator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 0%

Importance

Changes 4
Bugs 1 Features 0
Metric Value
wmc 1
c 4
b 1
f 0
lcom 0
cbo 5
dl 0
loc 17
ccs 0
cts 3
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A isValid() 0 4 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 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