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

TaskNameIsNotEmptySpecification::isSatisfiedBy()   A

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 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