Completed
Push — master ( 5d22ce...12a557 )
by François
02:57
created

TestProfile   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 8 1
1
<?php
2
3
/*
4
 * This file is part of the Bouncer package.
5
 *
6
 * (c) François Hodierne <[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 Bouncer\Profile;
13
14
use Bouncer\Bouncer;
15
16
class TestProfile extends DefaultProfile
17
{
18
19
    public function load(Bouncer $instance)
20
    {
21
        parent::load($instance);
22
23
        $exit = function() { error_log('Test profile. Not exiting.'); };
24
25
        $instance->setOptions(array('exit' => $exit));
26
    }
27
28
}
29