Skip to content

Commit 6bebaac

Browse files
committed
Revert "remove constructor from AbstractComplexType"
This reverts commit 31208c0.
1 parent ada142c commit 6bebaac

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/FedEx/AbstractComplexType.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ abstract class AbstractComplexType
2424
*/
2525
protected $name;
2626

27+
/**
28+
* Constructor
29+
*
30+
* @param array $options Data as key => value array
31+
*/
32+
public function __construct(array $options = null)
33+
{
34+
if (is_array($options)) {
35+
foreach ($options as $name => $value) {
36+
$this->$name = $value;
37+
}
38+
}
39+
}
40+
2741
/**
2842
* __set implementation
2943
*

0 commit comments

Comments
 (0)