FileOwner   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A validatedBy() 0 4 1
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