Test Failed
Push — master ( faf208...51c6fd )
by Martin
14:25
created

TaskNameIsNotEmptySpecification   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A isSatisfiedBy() 0 4 1
1
<?php
2
3
namespace Todo\Domain\Specification;
4
5
/**
6
 * Class TaskNameIsNotEmptySpecification
7
 *
8
 * @category None
9
 * @package  Domain\Specification
10
 * @author   Martin Pham <[email protected]>
11
 * @license  None http://
12
 * @link     None
13
 */
14
class TaskNameIsNotEmptySpecification
15
{
16
    /**
17
     * Is Satisfied By
18
     *
19
     * @param string $name Name
20
     *
21
     * @return bool
22
     */
23
    public function isSatisfiedBy(string $name)
24
    {
25
        return $name !== '';
26
    }
27
}
28