ResponseAbstract   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A getResponseClass() 0 3 2
1
<?php
2
3
4
namespace carono\etxtru;
5
6
7
abstract class ResponseAbstract extends ArrayObject
8
{
9
    /**
10
     * @var boolean
11
     */
12
    public $success;
13
    /**
14
     * @var string
15
     */
16
    public $error;
17
18
19
    /**
20
     * @param $property
21
     * @return mixed|null
22
     */
23
    public function getResponseClass($property)
24
    {
25
        return isset($this->_responseClasses[$property]) ? $this->_responseClasses[$property] : null;
0 ignored issues
show
Bug Best Practice introduced by
The property _responseClasses does not exist on carono\etxtru\ResponseAbstract. Did you maybe forget to declare it?
Loading history...
26
    }
27
}