<?php

namespace Sabre\BargainFinderMax\Structs;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for SplitTaxes Structs
 * @subpackage Structs
 */
class SplitTaxes extends AbstractStructBase
{
    /**
     * The ByLeg
     * @var bool
     */
    public $ByLeg;
    /**
     * The ByFareComponent
     * @var bool
     */
    public $ByFareComponent;
    /**
     * Constructor method for SplitTaxes
     * @uses SplitTaxes::setByLeg()
     * @uses SplitTaxes::setByFareComponent()
     * @param bool $byLeg
     * @param bool $byFareComponent
     */
    public function __construct($byLeg = null, $byFareComponent = null)
    {
        $this
            ->setByLeg($byLeg)
            ->setByFareComponent($byFareComponent);
    }
    /**
     * Get ByLeg value
     * @return bool|null
     */
    public function getByLeg()
    {
        return $this->ByLeg;
    }
    /**
     * Set ByLeg value
     * @param bool $byLeg
     * @return \Sabre\BargainFinderMax\Structs\SplitTaxes
     */
    public function setByLeg($byLeg = null)
    {
        $this->ByLeg = $byLeg;
        return $this;
    }
    /**
     * Get ByFareComponent value
     * @return bool|null
     */
    public function getByFareComponent()
    {
        return $this->ByFareComponent;
    }
    /**
     * Set ByFareComponent value
     * @param bool $byFareComponent
     * @return \Sabre\BargainFinderMax\Structs\SplitTaxes
     */
    public function setByFareComponent($byFareComponent = null)
    {
        $this->ByFareComponent = $byFareComponent;
        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\BargainFinderMax\Structs\SplitTaxes
     */
    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__;
    }
}
