BaseController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 10
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCacheTimeKeeper() 0 4 1
1
<?php
2
/**
3
 * AnimeDb package.
4
 *
5
 * @author    Peter Gribanov <[email protected]>
6
 * @copyright Copyright (c) 2011, Peter Gribanov
7
 * @license   http://opensource.org/licenses/GPL-3.0 GPL v3
8
 */
9
10
namespace AnimeDb\Bundle\CatalogBundle\Controller;
11
12
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
13
use AnimeDb\Bundle\CacheTimeKeeperBundle\Service\Keeper;
14
15
/**
16
 * BaseController.
17
 */
18
abstract class BaseController extends Controller
19
{
20
    /**
21
     * @return Keeper
22
     */
23
    protected function getCacheTimeKeeper()
24
    {
25
        return $this->get('cache_time_keeper');
26
    }
27
}
28