FileOwner::validatedBy()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * Copyright 2014 Jonathan Bouzekri. All rights reserved.
5
 *
6
 * @copyright Copyright 2014 Jonathan Bouzekri <[email protected]>
7
 * @license https://github.com/jbouzekri/FileUploaderBundle/blob/master/LICENSE
8
 * @link https://github.com/jbouzekri/FileUploaderBundle
9
 */
10
11
namespace Jb\Bundle\FileUploaderBundle\Service\Validator\Constraints;
12
13
use Symfony\Component\Validator\Constraint;
14
15
/**
16
 * FileOwner
17
 *
18
 * @author jobou
19
 * @Annotation
20
 */
21
class FileOwner extends Constraint
22
{
23
    /**
24
     * @var string
25
     */
26
    public $message = 'You do not own the submitted file "%filename%".';
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function validatedBy()
32
    {
33
        return 'jb_file_owner';
34
    }
35
}
36