KamranAhmed\Geocode\Location::__construct PHP Метод

__construct() публичный Метод

Create a new Location object
public __construct ( string $address, stdClass $dataFromService )
$address string Address whose detail it is
$dataFromService stdClass The data retrieved from the Geocoding service
    public function __construct($address, \stdClass $dataFromService)
    {
        $this->address = $address;
        $this->populateDetail($dataFromService);
    }