Completed
Push — ezp_30981_content_info_proxy ( a78a98...0757d2 )
by
unknown
15:21
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
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