Passed
Push — master ( fe0473...cf34a0 )
by Php Easy Api
03:35
created

RequestAbstract::getOrigin()   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 auto_generators_dont_overwrite
39
     *
40
     * @return mixed
41
     */
42
    protected function getAutoGeneratorsDontOverwrite()
43
    {
44
        return $this->auto_generators_dont_overwrite;
0 ignored issues
show
Bug Best Practice introduced by
The property auto_generators_dont_overwrite does not exist on Resta\Request\RequestAbstract. Did you maybe forget to declare it?
Loading history...
45
    }
46
47
    /**
48
     * get client objects
49
     *
50
     * @return array
51
     */
52
    protected function getClientObjects()
53
    {
54
        return array_diff_key($this->getObjects(),['inputs'=>[]]);
55
    }
56
57
    /**
58
     * get generators data
59
     *
60
     * @return mixed
61
     */
62
    protected function getGenerators()
63
    {
64
        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...
65
    }
66
67
    /**
68
     * get auto_generators_dont_overwrite
69
     *
70
     * @return mixed
71
     */
72
    protected function getGeneratorsDontOverwrite()
73
    {
74
        return $this->generators_dont_overwrite;
0 ignored issues
show
Bug Best Practice introduced by
The property generators_dont_overwrite does not exist on Resta\Request\RequestAbstract. Did you maybe forget to declare it?
Loading history...
75
    }
76
77
    /**
78
     * get object vars
79
     *
80
     * @return array
81
     */
82
    protected function getObjects()
83
    {
84
        return get_object_vars($this);
85
    }
86
87
    /**
88
     * get origin
89
     *
90
     * @return array
91
     */
92
    protected function getOrigin()
93
    {
94
        return $this->origin;
95
    }
96
}