Completed
Push — ezp_30981_content_info_proxy ( 5d5afd...47f956 )
by
unknown
15:40
created

SiteAccessGroup   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getName() 0 4 1
A __toString() 0 4 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;
10
11
final class SiteAccessGroup
12
{
13
    /** @var string */
14
    private $name;
15
16
    public function __construct(string $name)
17
    {
18
        $this->name = $name;
19
    }
20
21
    public function getName(): string
22
    {
23
        return $this->name;
24
    }
25
26
    public function __toString()
27
    {
28
        return $this->name;
29
    }
30
}
31