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

BetweenInclusiveRule   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 17
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDescription() 0 4 1
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 value in range between minimum and maximum values
15
 *
16
 * @package Bluz\Validator\Rule
17
 */
18
class BetweenInclusiveRule extends BetweenRule
19
{
20
    /**
21
     * @var bool
22
     */
23
    protected $inclusive = true;
24
25
    /**
26
     * Get error template
27
     *
28
     * @return string
29
     */
30 8
    public function getDescription() : string
31
    {
32 8
        return __('must be inclusive between %1 and %2', $this->minValue, $this->maxValue);
33
    }
34
}
35