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
Pull Request — master (#678)
by Henrique
04:08
created

AbstractWrapper2::getRule()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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\Exceptions\ComponentException;
15
use Respect\Validation\Rule;
16
17
abstract class AbstractWrapper2 extends AbstractRule
18
{
19
    /**
20
     * @var Rule
21
     */
22
    private $rule;
23
24
    /**
25
     * @param Rule $rule
26
     */
27 1
    public function __construct(Rule $rule)
28
    {
29 1
        $this->rule = $rule;
30 1
    }
31
32
    /**
33
     * Returns the wrappered rule.
34
     *
35
     * @throws ComponentException
36
     *
37
     * @return Rule
38
     */
39 1
    public function getRule()
40
    {
41 1
        return $this->rule;
42
    }
43
}
44