Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — 2.0 ( 7d4223 )
by Henrique
05:27
created

AbstractWrapper2   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRule() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of Respect/Validation.
5
 *
6
 * (c) Alexandre Gomes Gaigalas <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the "LICENSE.md"
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Respect\Validation\Rules;
13
14
use Respect\Validation\Rule;
15
16
abstract class AbstractWrapper2 extends AbstractRule
17
{
18
    /**
19
     * @var Rule
20
     */
21
    private $rule;
22
23
    /**
24
     * @param Rule $rule
25
     */
26 1
    public function __construct(Rule $rule)
27
    {
28 1
        $this->rule = $rule;
29 1
    }
30
31
    /**
32
     * Returns the wrappered rule.
33
     *
34
     * @return Rule
35
     */
36 1
    public function getRule(): Rule
37
    {
38 1
        return $this->rule;
39
    }
40
}
41