Completed
Pull Request — develop (#14)
by jean-marie
02:23
created

CliCommandPath   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A validatedBy() 0 4 1
1
<?php
2
3
namespace FOA\CronBundle\Validator\Constraints;
4
5
use Symfony\Component\Validator\Constraint;
6
7
/**
8
 * @Annotation
9
 */
10
class CliCommandPath extends Constraint
11
{
12
    public $message = 'The path "%string%" is not valid Symfony command path.';
13
14
    /**
15
     * @inheritdoc
16
     */
17
    public function validatedBy()
18
    {
19
        return 'foa.cli_command_path.validator';
20
    }
21
}
22