Completed
Push — master ( 6565fb...b207da )
by Thomas
10:01
created

UniqueUsername::validatedBy()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace keeko\core\validator\constraints;
3
4
use Symfony\Component\Validator\Constraint;
5
6
class UniqueUsername extends Constraint {
7
	
8
	public $message = 'Username %username% is already been taken';
9
	
10
	public function validatedBy() {
11
		return get_class($this).'Validator';
12
	}
13
}