Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class Scope |
||
20 | { |
||
21 | private $value; |
||
22 | |||
23 | const SINGLETON = 'singleton'; |
||
24 | const PROTOTYPE = 'prototype'; |
||
25 | |||
26 | public function __construct($value) |
||
27 | { |
||
28 | $this->value = $value; |
||
29 | } |
||
30 | |||
31 | public static function Singleton() |
||
32 | { |
||
33 | return new Scope(Scope::SINGLETON); |
||
34 | } |
||
35 | |||
36 | public static function Prototype() |
||
37 | { |
||
38 | return new Scope(Scope::PROTOTYPE); |
||
39 | } |
||
40 | |||
41 | public function __toString() |
||
44 | } |
||
45 | } |
||
46 |