Completed
Pull Request — master (#162)
by
unknown
03:18
created

MinSizeSliderImage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 50%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getTargets() 0 4 1
A validatedBy() 0 4 1
1
<?php
2
3
namespace AppBundle\Validator;
4
5
use Symfony\Component\Validator\Constraint;
6
7
/** @Annotation */
8
class MinSizeSliderImage extends Constraint
9
{
10
    /**
11
     * @var string
12
     */
13
    public $message = 'Image_must_be_minimum_size';
14
15
    public function validatedBy()
16
    {
17
        return 'min_size_slider_image';
18
    }
19
20 1
    public function getTargets()
21
    {
22 1
        return self::CLASS_CONSTRAINT;
23
    }
24
}
25