ResponseAbstract::getResponseClass()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 2
eloc 1
nc 2
nop 1
1
<?php
2
3
4
namespace carono\turbotext;
5
6
7
abstract class ResponseAbstract extends ArrayObject
8
{
9
    /**
10
     * @var boolean
11
     */
12
    public $success;
13
    /**
14
     * @var string
15
     */
16
    public $errors;
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;
26
    }
27
}