ClassValidatorProxy::addError()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
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 https://maslosoft.com/mangan/
12
 */
13
14
namespace Maslosoft\Mangan\Validators\Proxy;
15
16
use Maslosoft\Addendum\Interfaces\AnnotatedInterface;
17
use Maslosoft\Mangan\Interfaces\Validators\ValidatorInterface;
18
use Maslosoft\Mangan\Interfaces\Validators\ValidatorProxyInterface;
19
20
/**
21
 * Class Validator Proxy is validator attached directly into attribute.
22
 *
23
 * @author Piotr Maselkowski <pmaselkowski at gmail.com>
24
 */
25
class ClassValidatorProxy implements ValidatorInterface, ValidatorProxyInterface
26
{
27
28
	public function addError($message)
29
	{
30
31
	}
32
33
	public function getErrors()
34
	{
35
36
	}
37
38
	public function getValidator()
39
	{
40
41
	}
42
43
	public function isValid(AnnotatedInterface $model, $attribute)
44
	{
45
46
	}
47
48
	public function setValidator(ValidatorInterface $validator)
49
	{
50
51
	}
52
53
}
54