Test Failed
Push — master ( 9ca4a5...db00ed )
by Vítězslav
11:19
created

Banka   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 83.33%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
dl 0
loc 33
ccs 5
cts 6
cp 0.8333
rs 10
c 2
b 0
f 0
wmc 2
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A stahnoutVypisyOnline() 0 5 1
A automatickeParovani() 0 5 1
1
<?php
2
/**
3
 * FlexiPeeHP - Bank Class.
4
 *              Objekt Banky.
5
 *
6
 * @author     Vítězslav Dvořák <[email protected]>
7
 * @copyright  (C) 2015-2017 Spoje.Net
8
 */
9
10
namespace FlexiPeeHP;
11
12
/**
13
 * Banka
14
 * 
15
 * @link https://demo.flexibee.eu/c/demo/banka/properties Vlastnosti evidence
16
 */
17
class Banka extends FlexiBeeRW
18
{
19
    /**
20
     * Evidence užitá objektem.
21
     *
22
     * @var string
23
     */
24
    public $evidence = 'banka';
25
26
    /**
27
     * Stáhne bankovní výpisy  ( trvá delší dobu )
28
     *
29
     * @return boolean
30
     */
31 1
    public function stahnoutVypisyOnline()
32
    {
33 1
        $this->performRequest('nacteni-vypisu-online.json', 'PUT', 'txt');
34 1
        return $this->lastResponseCode == 200;
35
    }
36
37
    /**
38
     * Start invoice authomatic matching process ( it take longer time )
39
     * Spustí proces automatického párování plateb. ( trvá delší dobu )
40
     *
41
     * @link https://demo.flexibee.eu/devdoc/parovani-plateb Interní dokumentace
42
     * @return boolean
43
     */
44 1
    public function automatickeParovani()
45
    {
46 1
        $this->performRequest('automaticke-parovani', 'PUT');
47
        return $this->lastResponseCode == 200;
48
    }
49
}
50