Passed
Branch master (fe0473)
by Php Easy Api
07:21 queued 04:02
created

RequestAbstract::getGenerators()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Resta\Request;
4
5
abstract class RequestAbstract
6
{
7
    /**
8
     * @var array $inputs
9
     */
10
    protected $inputs = [];
11
12
    /**
13
     * @var array $origin
14
     */
15
    protected $origin = [];
16
17
    /**
18
     * get inputs
19
     *
20
     * @return array
21
     */
22
    protected function get()
23
    {
24
        return $this->inputs;
25
    }
26
27
    /**
28
     * get auto generators data
29
     *
30
     * @return mixed
31
     */
32
    protected function getAutoGenerators()
33
    {
34
        return $this->auto_generators;
0 ignored issues
show
Bug Best Practice introduced by
The property auto_generators does not exist on Resta\Request\RequestAbstract. Did you maybe forget to declare it?
Loading history...
35
    }
36
37
    /**
38
     * get client objects
39
     *
40
     * @return array
41
     */
42
    protected function getClientObjects()
43
    {
44
        return array_diff_key($this->getObjects(),['inputs'=>[]]);
45
    }
46
47
    /**
48
     * get generators data
49
     *
50
     * @return mixed
51
     */
52
    protected function getGenerators()
53
    {
54
        return $this->generators;
0 ignored issues
show
Bug Best Practice introduced by
The property generators does not exist on Resta\Request\RequestAbstract. Did you maybe forget to declare it?
Loading history...
55
    }
56
57
    /**
58
     * get object vars
59
     *
60
     * @return array
61
     */
62
    protected function getObjects()
63
    {
64
        return get_object_vars($this);
65
    }
66
67
    /**
68
     * get origin
69
     *
70
     * @return array
71
     */
72
    protected function getOrigin()
73
    {
74
        return $this->origin;
75
    }
76
}