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

Assert::lazy()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 7
ccs 0
cts 6
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
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