Created
May 6, 2016 12:17
-
-
Save basz/fe079b3ef364a245dea401a93af34afd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static function from( | |
| $addressee = null, | |
| $street = null, | |
| string $streetOrdinality = null, | |
| string $streetOrdinalitySuffix = null, | |
| string $postalCode = null, | |
| string $populatedPlace = null, | |
| string $country = null, | |
| string $countryRegion = null, | |
| string $geoLocation = null | |
| ): Address | |
| { | |
| if ($country) { | |
| $country = Country::fromString($country); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static function from( | |
| $addressee = null, | |
| $street = null, | |
| string $streetOrdinality = null, | |
| string $streetOrdinalitySuffix = null, | |
| string $postalCode = null, | |
| string $populatedPlace = null, | |
| string $country = null, | |
| string $countryRegion = null, | |
| string $geoLocation = null | |
| ): Address { | |
| if ($country) { | |
| $country = Country::fromString($country); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment