<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_ReadRequest StructType
 * @subpackage Structs
 */
class JP_ReadRequest extends AbstractStructBase
{
    /**
     * The ReservationLocator
     * @var string
     */
    public $ReservationLocator;
    /**
     * Constructor method for JP_ReadRequest
     * @uses JP_ReadRequest::setReservationLocator()
     * @param string $reservationLocator
     */
    public function __construct($reservationLocator = null)
    {
        $this
            ->setReservationLocator($reservationLocator);
    }
    /**
     * Get ReservationLocator value
     * @return string|null
     */
    public function getReservationLocator()
    {
        return $this->ReservationLocator;
    }
    /**
     * Set ReservationLocator value
     * @param string $reservationLocator
     * @return \StructType\JP_ReadRequest
     */
    public function setReservationLocator($reservationLocator = null)
    {
        // validation for constraint: string
        if (!is_null($reservationLocator) && !is_string($reservationLocator)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($reservationLocator, true), gettype($reservationLocator)), __LINE__);
        }
        $this->ReservationLocator = $reservationLocator;
        return $this;
    }
}
