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

TestProfile::load()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
c 1
b 1
f 1
dl 0
loc 8
rs 9.4285
cc 1
eloc 4
nc 1
nop 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