Conditions | 2 |
Paths | 2 |
Total Lines | 21 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 14 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
21 | 19 | public static function getSubscribingMethods() |
|
22 | { |
||
23 | 19 | $methods = []; |
|
24 | |||
25 | 19 | foreach (['DateTime', 'DateTimeImmutable', 'DateInterval'] as $type) { |
|
26 | 19 | $methods[] = [ |
|
27 | 19 | 'type' => $type, |
|
28 | 19 | 'direction' => GraphNavigatorInterface::DIRECTION_DESERIALIZATION, |
|
29 | 19 | 'format' => 'soap', |
|
30 | 19 | 'method' => 'deserialize' . $type . 'FromXml' |
|
31 | ]; |
||
32 | |||
33 | 19 | $methods[] = [ |
|
34 | 19 | 'type' => $type, |
|
35 | 19 | 'format' => 'soap', |
|
36 | 19 | 'direction' => GraphNavigatorInterface::DIRECTION_SERIALIZATION, |
|
37 | 19 | 'method' => 'serialize' . $type, |
|
38 | ]; |
||
39 | } |
||
40 | |||
41 | 19 | return $methods; |
|
42 | } |
||
54 |