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
03:32
created

AbstractWrapper2   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 25
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\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
    public function __construct(Rule $rule)
28
    {
29
        $this->rule = $rule;
30
    }
31
32
    /**
33
     * Returns the wrappered rule.
34
     *
35
     * @return Rule
36
     */
37
    public function getRule()
38
    {
39
        return $this->rule;
40
    }
41
}
42