<?php

namespace Sabre\EnhancedAirBook\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for RetryRebook Structs
 * @subpackage Structs
 */
class RetryRebook extends AbstractStructBase
{
    /**
     * The Option
     * Meta informations extracted from the WSDL
     * - use: required
     * @var bool
     */
    public $Option;
    /**
     * The Successful
     * @var bool
     */
    public $Successful;
    /**
     * Constructor method for RetryRebook
     * @uses RetryRebook::setOption()
     * @uses RetryRebook::setSuccessful()
     * @param bool $option
     * @param bool $successful
     */
    public function __construct($option = null, $successful = null)
    {
        $this
            ->setOption($option)
            ->setSuccessful($successful);
    }
    /**
     * Get Option value
     * @return bool
     */
    public function getOption()
    {
        return $this->Option;
    }
    /**
     * Set Option value
     * @param bool $option
     * @return \Sabre\EnhancedAirBook\Structs\RetryRebook
     */
    public function setOption($option = null)
    {
        $this->Option = $option;
        return $this;
    }
    /**
     * Get Successful value
     * @return bool|null
     */
    public function getSuccessful()
    {
        return $this->Successful;
    }
    /**
     * Set Successful value
     * @param bool $successful
     * @return \Sabre\EnhancedAirBook\Structs\RetryRebook
     */
    public function setSuccessful($successful = null)
    {
        $this->Successful = $successful;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return \Sabre\EnhancedAirBook\Structs\RetryRebook
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
