Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
50 | public static function getShareable( |
||
51 | /*# string */ $scope = '__GLOBAL__' |
||
52 | )/*# : ShareableInterface */ { |
||
53 | $class = get_called_class(); |
||
54 | if (!isset(self::$shareables[$scope][$class])) { |
||
55 | self::$shareables[$scope][$class] = new static(); |
||
56 | } |
||
57 | return self::$shareables[$class]; |
||
58 | } |
||
59 | |||
69 |