Completed
Push — develop ( c4320c...fb6e80 )
by Daniel
04:53
created

TabRouteBuilder   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getRoute() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of Sulu.
5
 *
6
 * (c) MASSIVE ART WebServices GmbH
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Sulu\Bundle\AdminBundle\Admin\Routing;
13
14
class TabRouteBuilder implements TabRouteBuilderInterface
15
{
16
    const VIEW = 'sulu_admin.tabs';
17
18
    /**
19
     * @var Route
20
     */
21
    private $route;
22
23
    public function __construct(string $name, string $path)
24
    {
25
        $this->route = new Route($name, $path, static::VIEW);
26
    }
27
28
    public function getRoute(): Route
29
    {
30
        return clone $this->route;
31
    }
32
}
33