Total Complexity | 1 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
6 | class X |
||
7 | { |
||
8 | public $publicPropertySelfDescriptive; |
||
9 | |||
10 | /** |
||
11 | * @var int |
||
12 | */ |
||
13 | public $publicProperty = 1; // Random comment |
||
14 | private $foo = 15; //add |
||
15 | private $bar = null; //delete |
||
16 | const MUH = 'KUH'; // even more wat |
||
17 | private $y = null; /* y is null by default */ |
||
18 | public static $whatever = 'foobar'; // wat |
||
19 | private $baz = 16; //change |
||
20 | |||
21 | /** |
||
22 | * array of foo => bar arrays |
||
23 | * |
||
24 | * @var array |
||
25 | */ |
||
26 | private $_privateProperty = [['foo' => 'bar']]; |
||
27 | |||
28 | /** |
||
29 | * @var int |
||
30 | * |
||
31 | * @ORM\Column(name="SECT_ID", type="integer", nullable=false) |
||
32 | * @ORM\Id |
||
33 | */ |
||
34 | protected $id; |
||
35 | |||
36 | /** |
||
37 | * foo |
||
38 | */ |
||
39 | public function foo() |
||
40 | { |
||
41 | $foo = 2; |
||
42 | /** @var int $bla */ |
||
43 | $bla = 1; |
||
44 | /** @var int $bla */ |
||
45 | } |
||
46 | |||
47 | private $_endThing; |
||
48 | |||
49 | /** |
||
50 | * stuff |
||
51 | */ |
||
52 | const STUFF = 1; |
||
53 | |||
54 | public $stuff = [self::STUFF]; |
||
55 | } |