<?php

namespace Shift4\Response;

class Shipping extends AbstractResponse
{

    public function __construct($response)
    {
        parent::__construct($response);
    }

    public function getName()
    {
        return $this->get('name');
    }

    /**
     * @return \Shift4\Response\Address
     */
    public function getAddress()
    {
        return $this->getObject('address', '\Shift4\Response\Address');
    }
}
