Passed
Push — master ( 342126...12496d )
by Mr
05:33
created

Assert   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 7
c 1
b 0
f 0
dl 0
loc 13
ccs 0
cts 6
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A lazy() 0 7 1
1
<?php declare(strict_types=1);
2
/**
3
 * This file is part of the daikon-cqrs/interop project.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
9
namespace Daikon\Interop;
10
11
use Assert\Assert as BaseAssert;
12
13
class Assert extends BaseAssert
14
{
15
    protected static $lazyAssertionExceptionClass = LazyAssertionException::class;
16
17
    protected static $assertionClass = Assertion::class;
18
19
    public static function lazy(): LazyAssertion
20
    {
21
        $lazyAssertion = new LazyAssertion;
22
23
        return $lazyAssertion
24
            ->setAssertClass(static::class)
25
            ->setExceptionClass(static::$lazyAssertionExceptionClass);
26
    }
27
}
28