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

SomeObject   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 19
rs 10
c 0
b 0
f 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