DummyObject   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 23
rs 10
c 1
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __toString() 0 4 1
A getTestUris() 0 8 1
1
<?php
2
3
namespace Test;
4
5
/**
6
 * Mimics real object behavior
7
 *
8
 * @package default
9
 * @author     author     <email>
10
 */
11
class DummyObject
12
{
13
    protected $body;
14
15
    public function __construct($body)
16
    {
17
        $this -> body = $body;
18
    }
19
    
20
    public function __toString()
21
    {
22
        return $this -> body;
23
    }
24
25
    protected function getTestUris()
26
    {
27
        return [
28
            'some bizzare series of Uris',
29
            'some bizzare series of Uris',
30
            'adafa89354925054035^&$$*&)($@_',
31
            ];
32
    }
33
}
34