<?php

namespace ServiceType;

use \WsdlToPhp\PackageBase\AbstractSoapClientBase;

/**
 * This class stands for Read ServiceType
 * @subpackage Services
 */
class Read extends AbstractSoapClientBase
{
    /**
     * Method to call the operation originally named ReadBooking
     * Meta information extracted from the WSDL
     * - documentation: Read process for bookings.
     * @uses AbstractSoapClientBase::getSoapClient()
     * @uses AbstractSoapClientBase::setResult()
     * @uses AbstractSoapClientBase::getResult()
     * @uses AbstractSoapClientBase::saveLastError()
     * @param \StructType\ReadBooking $parameters
     * @return \StructType\ReadBookingResponse|bool
     */
    public function ReadBooking(\StructType\ReadBooking $parameters)
    {
        try {
            $this->setResult($this->getSoapClient()->ReadBooking($parameters));
            return $this->getResult();
        } catch (\SoapFault $soapFault) {
            $this->saveLastError(__METHOD__, $soapFault);
            return false;
        }
    }
    /**
     * Returns the result
     * @see AbstractSoapClientBase::getResult()
     * @return \StructType\ReadBookingResponse
     */
    public function getResult()
    {
        return parent::getResult();
    }
}
