Authentication::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
crap 1
1
<?php
2
/**
3
 * primaERP - Token handling Class.
4
 *
5
 * @author     Vítězslav Dvořák <[email protected]>
6
 * @copyright  (C) 2017 Vitex Software
7
 */
8
9
namespace primaERP;
10
11
/**
12
 * Token handling Class.
13
 *
14
 * @url http://devdoc.primaerp.com/rest/authentication.html
15
 */
16
class Authentication extends ApiClient
17
{
18
    /**
19
     * Saves obejct instace (singleton...).
20
     *
21
     * @var Shared
22
     */
23
    private static $_instance = null;
0 ignored issues
show
Unused Code introduced by
The property $_instance is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
24
25
    /**
26
     * Sekce užitá objektem.
27
     * Section used by object
28
     *
29
     * @var string
30
     */
31
    public $section = 'auth';
32
33
    /**
34
     * Token
35
     *
36
     * @param mixed $init
37
     * @param array $options
38
     */
39 1
    public function __construct($init = null, $options = array())
40
    {
41 1
        parent::__construct($init, $options);
42 1
    }
43
44
}
45