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

SiteAccessSetting::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 3
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
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