DummyObject::__toString()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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