ToBeBelow   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of expect package.
5
 *
6
 * (c) Noritaka Horio <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
namespace expect\matcher;
12
13
/**
14
 * Alias of ToBeLessThan.
15
 *
16
 * <code>
17
 * $matcher = new ToBeBelow(100);
18
 * $matcher->match(99); //return true
19
 *
20
 * $matcher->match(100); //return false
21
 * </code>
22
 *
23
 * @author Noritaka Horio <[email protected]>
24
 * @copyright Noritaka Horio <[email protected]>
25
 */
26
final class ToBeBelow implements ReportableMatcher
27
{
28
    use LessThanMatcherDelegatable;
29
30
    /**
31
     * @param int|float $expected
32
     */
33
    public function __construct($expected)
34
    {
35
        $this->lessThanMatcher = new ToBeLessThan($expected);
36
    }
37
}
38