Completed
Push — master ( 32f168...027778 )
by Beñat
05:09 queued 02:35
created

GalleryRoutesLoaderBuilder   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A definitionName() 0 4 1
A defaultRouteName() 0 4 1
A defaultRoutePath() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the CMS Kernel package.
5
 *
6
 * Copyright (c) 2016-present LIN3S <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace LIN3S\CMSKernel\Infrastructure\BenGorFileBundle\DependencyInjection\Compiler\Routing;
13
14
/**
15
 * @author Beñat Espiña <[email protected]>
16
 */
17
class GalleryRoutesLoaderBuilder extends RoutesLoaderBuilder
18
{
19
    protected function definitionName()
20
    {
21
        return 'cms_kernel_bengor_file.routing.gallery_route_loader';
22
    }
23
24
    protected function defaultRouteName($file)
25
    {
26
        return sprintf('cms_kernel_ben_gor_file_bridge_%s_gallery', $file);
27
    }
28
29
    protected function defaultRoutePath($file)
30
    {
31
        return sprintf('/%s-gallery', $file);
32
    }
33
}
34