<?php

namespace CheckoutWC\SmartyStreets\PhpSdk\US_Autocomplete_Pro;

require_once __DIR__ . '/../ArrayUtil.php';
use CheckoutWC\SmartyStreets\PhpSdk\ArrayUtil;
/**
 * @see "https://smartystreets.com/docs/cloud/us-autocomplete-api#http-response"
 */
class Suggestion
{
    private $streetLine, $secondary, $city, $state, $zipcode, $entries;
    public function __construct($obj = null)
    {
        if ($obj == null) {
            return;
        }
        $this->streetLine = ArrayUtil::getField($obj, 'street_line');
        $this->secondary = ArrayUtil::getField($obj, 'secondary');
        $this->city = ArrayUtil::getField($obj, 'city');
        $this->state = ArrayUtil::getField($obj, 'state');
        $this->zipcode = ArrayUtil::getField($obj, 'zipcode');
        $this->entries = ArrayUtil::getField($obj, 'entries');
    }
    public function getStreetLine()
    {
        return $this->streetLine;
    }
    public function getSecondary()
    {
        return $this->secondary;
    }
    public function getCity()
    {
        return $this->city;
    }
    public function getState()
    {
        return $this->state;
    }
    public function getZIPCode()
    {
        return $this->zipcode;
    }
    public function getEntries()
    {
        return $this->entries;
    }
}
