Completed
Push — EZP-31044-site-access-provider ( 8220ce )
by
unknown
14:19
created

SiteAccessSetting   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 18
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
namespace eZ\Publish\Core\MVC\Symfony\SiteAccess\Tests;
8
9
use eZ\Publish\Core\MVC\Symfony\SiteAccess\Router;
10
11
class SiteAccessSetting
12
{
13
    public $name;
14
15
    public $isDefined;
16
17
    public $matchingType;
18
19
    public function __construct(
20
        string $name,
21
        bool $isDefined,
22
        string $matchingType = Router::DEFAULT_SA_MATCHING_TYPE
23
    ) {
24
        $this->name = $name;
25
        $this->isDefined = $isDefined;
26
        $this->matchingType = $matchingType;
27
    }
28
}
29