AbstractController::getPageManager()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
/**
3
 * @author Gerard van Helden <[email protected]>
4
 * @copyright Zicht Online <http://zicht.nl>
5
 */
6
7
namespace Zicht\Bundle\PageBundle\Controller;
8
9
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
10
11
/**
12
 * Common utility base controller
13
 */
14
abstract class AbstractController extends Controller
15
{
16
    /**
17
     * Utility method that returns the page manager.
18
     *
19
     * @return \Zicht\Bundle\PageBundle\Manager\PageManager
20
     */
21 4
    public function getPageManager()
22
    {
23 4
        return $this->get('zicht_page.page_manager');
24
    }
25
}
26