BaseController::getCacheTimeKeeper()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 4
c 1
b 0
f 1
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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
namespace AnimeDb\Bundle\AppBundle\Controller;
10
11
use AnimeDb\Bundle\CacheTimeKeeperBundle\Service\Keeper;
12
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
13
14
abstract class BaseController extends Controller
15
{
16
    /**
17
     * @return Keeper
18
     */
19
    protected function getCacheTimeKeeper()
20
    {
21
        return $this->get('cache_time_keeper');
22
    }
23
}
24