Completed
Push — master ( 38deb0...7544ac )
by Anton
11s
created

MoreOrEqualRule::getDescription()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Bluz Framework Component
4
 *
5
 * @copyright Bluz PHP Team
6
 * @link      https://github.com/bluzphp/framework
7
 */
8
9
declare(strict_types=1);
10
11
namespace Bluz\Validator\Rule;
12
13
/**
14
 * Check for minimum
15
 *
16
 * @package Bluz\Validator\Rule
17
 */
18
class MoreOrEqualRule extends MoreRule
19
{
20
    /**
21
     * @var bool
22
     */
23
    protected $inclusive = true;
24
25
    /**
26
     * Get error template
27
     *
28
     * @return string
29
     */
30 11
    public function getDescription() : string
31
    {
32 11
        return __('must be greater than or equals "%s"', $this->minValue);
33
    }
34
}
35