Completed
Push — master ( 68f225...5edd48 )
by Vítězslav
04:44
created

Banka   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 32
rs 10
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 - Objekt štítku.
4
 *
5
 * @author     Vítězslav Dvořák <[email protected]>
6
 * @copyright  (C) 2015,2016 Spoje.Net
7
 */
8
9
namespace FlexiPeeHP;
10
11
/**
12
 * @link https://demo.flexibee.eu/c/demo/banka/properties Vlastnosti evidence
13
 */
14
class Banka extends FlexiBeeRW
15
{
16
    /**
17
     * Evidence užitá objektem.
18
     *
19
     * @var string
20
     */
21
    public $evidence = 'banka';
22
23
    /**
24
     * Stáhne bankovní výpisy  ( trvá delší dobu )
25
     *
26
     * @return boolean
27
     */
28
    function stahnoutVypisyOnline()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
29
    {
30
        $this->performRequest('banka/nacteni-vypisu-online', 'PUT');
31
        return $this->lastResponseCode == 200;
32
    }
33
34
    /**
35
     * Spustí proces automatického pářování plateb. ( trvá delší dobu )
36
     *
37
     * @link https://demo.flexibee.eu/devdoc/parovani-plateb Interní dokumentace
38
     * @return boolean
39
     */
40
    function automatickeParovani()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
41
    {
42
        $this->performRequest('banka/automaticke-parovani', 'PUT');
43
        return $this->lastResponseCode == 200;
44
    }
45
}