ObjectForTesting   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 22
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A method() 0 3 1
1
<?php
2
3
namespace Test;
4
5
/**
6
 * Class used to test Object To Array Conversion
7
 */
8
class ObjectForTesting extends \stdClass
9
{
10
    /**
11
     * Simple Item
12
     * @var integer
13
     */
14
    public $item = 1;
15
16
    /**
17
     * Array item
18
     * @var array
19
     */
20
    public $arrItem = ['a', 'b' => 'c'];
21
22
    /**
23
     * Simple method
24
     *
25
     * @return boolean
26
     */
27
    public function method()
28
    {
29
        return true;
30
    }
31
}
32