Authenticated::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 1
1
<?php
2
/**
3
 * HiPanel core package
4
 *
5
 * @link      https://hipanel.com/
6
 * @package   hipanel-core
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2014-2019, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hipanel\tests\_support\Page;
12
13
use hipanel\tests\_support\AcceptanceTester;
14
15
class Authenticated
16
{
17
    /**
18
     * @var AcceptanceTester
19
     */
20
    protected $tester;
21
22
    public function __construct(AcceptanceTester $I)
23
    {
24
        $this->tester = $I;
25
        $this->login();
26
    }
27
28
    protected function login()
29
    {
30
        $this->tester->login();
31
    }
32
}
33