Total Complexity | 7 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class Console |
||
9 | { |
||
10 | public $entries = array(); |
||
11 | |||
12 | /** |
||
13 | * @param string $message |
||
14 | * @return static |
||
15 | */ |
||
16 | public function store( $message, $location = '' ) |
||
17 | { |
||
18 | $this->entries[] = array( |
||
19 | 'errno' => 0, |
||
20 | 'message' => $location.$this->normalizeValue( $message ), |
||
21 | 'name' => '<span class="glbb-info">Debug</span>', |
||
22 | ); |
||
23 | return $this; |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @param mixed $value |
||
28 | * @return bool |
||
29 | */ |
||
30 | protected function isObjectOrArray( $value ) |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param mixed $value |
||
37 | * @return string |
||
38 | */ |
||
39 | protected function normalizeValue( $value ) |
||
53 |