Completed
Push — ezp_30981_content_info_proxy ( a78a98...0757d2 )
by
unknown
15:21
created

SiteAccessSetting   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 1
1
<?php
2
3
/**
4
 * @copyright Copyright (C) eZ Systems AS. All rights reserved.
5
 * @license For full copyright and license information view LICENSE file distributed with this source code.
6
 */
7
declare(strict_types=1);
8
9
namespace eZ\Publish\Core\MVC\Symfony\SiteAccess\Tests;
10
11
use eZ\Publish\Core\MVC\Symfony\SiteAccess;
12
13
/**
14
 * This class represents settings which will be used to construct SiteAccessProvider mock.
15
 */
16
final class SiteAccessSetting
17
{
18
    /** @var string */
19
    public $name;
20
21
    /** @var bool */
22
    public $isDefined;
23
24
    /** @var string */
25
    public $matchingType;
26
27
    public function __construct(
28
        string $name,
29
        bool $isDefined,
30
        string $matchingType = SiteAccess::DEFAULT_MATCHING_TYPE
31
    ) {
32
        $this->name = $name;
33
        $this->isDefined = $isDefined;
34
        $this->matchingType = $matchingType;
35
    }
36
}
37