* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * @link http://www.temando.com/ */ class BatchListing implements ArgumentInterface, ShippingApiInterface { /** * @var ShippingApiAccess */ private $apiAccess; /** * @var BatchUrl */ private $batchUrl; /** * DispatchListing constructor. * @param ShippingApiAccess $apiAccess * @param BatchUrl $batchUrl */ public function __construct( ShippingApiAccess $apiAccess, BatchUrl $batchUrl ) { $this->apiAccess = $apiAccess; $this->batchUrl = $batchUrl; } /** * @return ShippingApiAccessInterface */ public function getShippingApiAccess(): ShippingApiAccessInterface { return $this->apiAccess; } /** * @return EntityUrlInterface|BatchUrl */ public function getBatchUrl(): EntityUrlInterface { return $this->batchUrl; } }