File tree Expand file tree Collapse file tree 2 files changed +28
-4
lines changed Expand file tree Collapse file tree 2 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 8
8
9
9
class Type extends Enum
10
10
{
11
- public const STANDARD = 100 ;
12
- public const CHAIN = 200 ;
13
- public const DPD = 300 ;
11
+ public const STANDARD = '100 ' ;
12
+ public const CHAIN = '200 ' ;
13
+ public const DPD = '300 ' ;
14
+ public const SWIP_BOX_1 = '400401 ' ;
15
+ public const SWIP_BOX_2 = '400402 ' ;
16
+ public const POINT_PACK = '500501 ' ;
17
+ public const FOREIGN_LOCKER = '400 ' ;
14
18
15
19
public static function standard (): self
16
20
{
@@ -26,4 +30,24 @@ public static function dpd(): self
26
30
{
27
31
return self ::get (self ::DPD );
28
32
}
33
+
34
+ public static function swipBox1 (): self
35
+ {
36
+ return self ::get (self ::SWIP_BOX_1 );
37
+ }
38
+
39
+ public static function swipBox2 (): self
40
+ {
41
+ return self ::get (self ::SWIP_BOX_2 );
42
+ }
43
+
44
+ public static function pointPack (): self
45
+ {
46
+ return self ::get (self ::POINT_PACK );
47
+ }
48
+
49
+ public static function foreignLocker (): self
50
+ {
51
+ return self ::get (self ::FOREIGN_LOCKER );
52
+ }
29
53
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public function fromXmlElement(\SimpleXMLElement $xml): PUDO
22
22
$ pudo = new PUDO ();
23
23
$ pudo ->active = 'true ' === (string ) $ xml ['active ' ];
24
24
$ pudo ->id = (string ) $ xml ->PUDO_ID ;
25
- $ pudo ->type = Type::byValue ((int ) $ xml ->PUDO_TYPE );
25
+ $ pudo ->type = Type::byValue ((string ) $ xml ->PUDO_TYPE );
26
26
$ pudo ->language = (string ) $ xml ->LANGUAGE ;
27
27
$ pudo ->address = $ this ->createAddress ($ xml );
28
28
$ pudo ->coordinates = new Coordinates ((float ) $ xml ->LATITUDE , (float ) $ xml ->LONGITUDE );
You can’t perform that action at this time.
0 commit comments