Passed
Push — master ( d2ebdc...958928 )
by Bogdan
05:05
created

VoidReturnSpec   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A allowsNull() 0 4 1
A prefersUndefined() 0 4 1
1
<?php declare(strict_types=1);
2
3
/*
4
 * This file is part of the pinepain/js-sandbox PHP library.
5
 *
6
 * Copyright (c) 2016-2017 Bogdan Padalko <[email protected]>
7
 *
8
 * Licensed under the MIT license: http://opensource.org/licenses/MIT
9
 *
10
 * For the full copyright and license information, please view the
11
 * LICENSE file that was distributed with this source or visit
12
 * http://opensource.org/licenses/MIT
13
 */
14
15
16
namespace Pinepain\JsSandbox\Specs\ReturnSpec;
17
18
19
class VoidReturnSpec implements ReturnSpecInterface
20
{
21
    public function allowsNull(): bool
22
    {
23
        return true;
24
    }
25
26
    public function prefersUndefined(): bool
27
    {
28
        return true;
29
    }
30
}
31