Skip to content

Commit 6120e70

Browse files
committed
Additional alias methods added
1 parent eb920a4 commit 6120e70

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Address.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,22 @@ public function __serialize(){
7575
"full" => $this->full,
7676
];
7777
}
78+
79+
/**
80+
* Convert instance to array
81+
*
82+
* @return array
83+
*/
84+
public function toArray(){
85+
return $this->__serialize();
86+
}
87+
88+
/**
89+
* Return the stringified attribute
90+
*
91+
* @return string
92+
*/
93+
public function toString(){
94+
return $this->__toString();
95+
}
7896
}

0 commit comments

Comments
 (0)