Authentication   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 29
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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