Completed
Push — master ( 686466...ec002f )
by Pol
12:43
created

ExampleClass   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 2
cbo 0
dl 0
loc 30
c 0
b 0
f 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A publicMethod() 0 4 1
A privateMethod() 0 4 1
A protectedMethod() 0 4 1
A renderProperties() 0 3 1
A renderMethods() 0 3 1
1
<?php
2
3
namespace drupol\DynamicObjects\test;
4
5
class ExampleClass
6
{
7
8
    public $publicProperty = 'publicProperty';
9
    private $privateProperty = 'privateProperty';
10
    protected $protectedProperty = 'protectedProperty';
11
12
    public function publicMethod()
13
    {
14
        return 'publicMethod';
15
    }
16
17
    private function privateMethod()
18
    {
19
        return 'privateMethod';
20
    }
21
22
    protected function protectedMethod()
23
    {
24
        return 'protectedMethod';
25
    }
26
27
    public function renderProperties() {
28
        return $this->publicProperty . $this->privateProperty . $this->protectedProperty;
29
    }
30
31
    public function renderMethods() {
32
        return $this->publicMethod() . $this->privateMethod() . $this->protectedMethod();
33
    }
34
}
35