Conditions | 2 |
Paths | 2 |
Total Lines | 21 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 14 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
10 | 17 | public static function getSubscribingMethods() |
|
11 | { |
||
12 | 17 | $methods = []; |
|
13 | |||
14 | 17 | foreach (['DateTime', 'DateTimeImmutable', 'DateInterval'] as $type) { |
|
15 | 17 | $methods[] = [ |
|
16 | 17 | 'type' => $type, |
|
17 | 17 | 'direction' => GraphNavigator::DIRECTION_DESERIALIZATION, |
|
18 | 17 | 'format' => 'soap', |
|
19 | 17 | 'method' => 'deserialize' . $type . 'FromXml' |
|
20 | ]; |
||
21 | |||
22 | 17 | $methods[] = [ |
|
23 | 17 | 'type' => $type, |
|
24 | 17 | 'format' => 'soap', |
|
25 | 17 | 'direction' => GraphNavigator::DIRECTION_SERIALIZATION, |
|
26 | 17 | 'method' => 'serialize' . $type, |
|
27 | ]; |
||
28 | } |
||
29 | |||
30 | 17 | return $methods; |
|
31 | } |
||
33 |