Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | 11 | public static function propertiesOrStaticClass() |
|
25 | { |
||
26 | 11 | static $instance; |
|
27 | 11 | if (null === $instance) { |
|
28 | 1 | $class = new PhpClass(); |
|
29 | 1 | $class->setFullyQualifiedName(get_class(new Properties())); |
|
30 | 1 | $instance = new OrType(); |
|
31 | 1 | $instance->add($class); |
|
32 | 1 | $instance->add(PhpDocType::staticType()); |
|
33 | } |
||
34 | 11 | return $instance; |
|
35 | } |
||
47 | } |