Completed
Pull Request — master (#2672)
by
unknown
06:17
created

HasGuessableExtension::__construct()   A

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 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Kunstmaan\MediaBundle\Validator\Constraints;
4
5
use Symfony\Component\Validator\Constraint;
6
7
/**
8
 * @Annotation
9
 */
10
class HasGuessableExtension extends Constraint
11
{
12
    public const NOT_GUESSABLE_ERROR = '496c3e10-17a0-4bb0-b3ad-c2bf99731703';
13
14
    protected static $errorNames = [
15
        self::NOT_GUESSABLE_ERROR => 'NOT_GUESSABLE_ERROR',
16
    ];
17
18
    public $notGuessableErrorMessage = 'The uploaded file has no extension and could not be automatically guessed by the system.';
19
}
20