Completed
Push — master ( 66f789...f393b7 )
by Barney
02:34 queued 10s
created

SomeObject::say()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Shrikeh\Collection\Examples;
4
5
class SomeObject
6
{
7
    private $string;
8
9
    public static function throughNamed($string)
10
    {
11
        return new static($string);
12
    }
13
14
    private function __construct($string)
15
    {
16
        $this->string = $string;
17
    }
18
19
    public function say()
20
    {
21
        return $this->string;
22
    }
23
}
24