FoundationSessionAtoum   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createSessionBuilder() 0 4 1
1
<?php
2
/*
3
 * This file is part of the PommProject/Foundation package.
4
 *
5
 * (c) 2014 - 2017 Grégoire HUBERT <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace PommProject\Foundation\Tester;
11
12
use PommProject\Foundation\SessionBuilder;
13
14
/**
15
 * FoundationSessionAtoum
16
 *
17
 * Provide a Atoum with a session configured with Foundation default poolers.
18
 *
19
 * @package   Foundation
20
 * @copyright 2014 - 2017 Grégoire HUBERT
21
 * @author    Grégoire HUBERT
22
 * @license   X11 {@link http://opensource.org/licenses/mit-license.php}
23
 * @see       VanillaSessionAtoum
24
 */
25
abstract class FoundationSessionAtoum extends VanillaSessionAtoum
26
{
27
    /**
28
     * createSessionBuilder
29
     *
30
     * Override VanillaSessionAtoum to return a Foundation Session builder.
31
     *
32
     * @param   array $configuration
33
     * @return  SessionBuilder
34
     */
35
    protected function createSessionBuilder(array $configuration)
36
    {
37
        return new SessionBuilder($configuration);
38
    }
39
}
40