<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for eSRO.Basket.SignedTicketsGroup StructType
 * @subpackage Structs
 */
class ESRO_Basket_SignedTicketsGroup extends ESRO_Basket_TicketsGroupBase
{
    /**
     * The FullPrice
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\Money
     */
    public $FullPrice;
    /**
     * The RowName
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $RowName;
    /**
     * The SeatInformation
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $SeatInformation;
    /**
     * The SeatName
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $SeatName;
    /**
     * Constructor method for eSRO.Basket.SignedTicketsGroup
     * @uses ESRO_Basket_SignedTicketsGroup::setFullPrice()
     * @uses ESRO_Basket_SignedTicketsGroup::setRowName()
     * @uses ESRO_Basket_SignedTicketsGroup::setSeatInformation()
     * @uses ESRO_Basket_SignedTicketsGroup::setSeatName()
     * @param \patest\StructType\Money $fullPrice
     * @param string $rowName
     * @param string $seatInformation
     * @param string $seatName
     */
    public function __construct(\patest\StructType\Money $fullPrice = null, $rowName = null, $seatInformation = null, $seatName = null)
    {
        $this
            ->setFullPrice($fullPrice)
            ->setRowName($rowName)
            ->setSeatInformation($seatInformation)
            ->setSeatName($seatName);
    }
    /**
     * Get FullPrice value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \patest\StructType\Money|null
     */
    public function getFullPrice()
    {
        return isset($this->FullPrice) ? $this->FullPrice : null;
    }
    /**
     * Set FullPrice value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \patest\StructType\Money $fullPrice
     * @return \patest\StructType\ESRO_Basket_SignedTicketsGroup
     */
    public function setFullPrice(\patest\StructType\Money $fullPrice = null)
    {
        if (is_null($fullPrice) || (is_array($fullPrice) && empty($fullPrice))) {
            unset($this->FullPrice);
        } else {
            $this->FullPrice = $fullPrice;
        }
        return $this;
    }
    /**
     * Get RowName value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getRowName()
    {
        return isset($this->RowName) ? $this->RowName : null;
    }
    /**
     * Set RowName value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $rowName
     * @return \patest\StructType\ESRO_Basket_SignedTicketsGroup
     */
    public function setRowName($rowName = null)
    {
        // validation for constraint: string
        if (!is_null($rowName) && !is_string($rowName)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($rowName, true), gettype($rowName)), __LINE__);
        }
        if (is_null($rowName) || (is_array($rowName) && empty($rowName))) {
            unset($this->RowName);
        } else {
            $this->RowName = $rowName;
        }
        return $this;
    }
    /**
     * Get SeatInformation value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getSeatInformation()
    {
        return isset($this->SeatInformation) ? $this->SeatInformation : null;
    }
    /**
     * Set SeatInformation value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $seatInformation
     * @return \patest\StructType\ESRO_Basket_SignedTicketsGroup
     */
    public function setSeatInformation($seatInformation = null)
    {
        // validation for constraint: string
        if (!is_null($seatInformation) && !is_string($seatInformation)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($seatInformation, true), gettype($seatInformation)), __LINE__);
        }
        if (is_null($seatInformation) || (is_array($seatInformation) && empty($seatInformation))) {
            unset($this->SeatInformation);
        } else {
            $this->SeatInformation = $seatInformation;
        }
        return $this;
    }
    /**
     * Get SeatName value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getSeatName()
    {
        return isset($this->SeatName) ? $this->SeatName : null;
    }
    /**
     * Set SeatName value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $seatName
     * @return \patest\StructType\ESRO_Basket_SignedTicketsGroup
     */
    public function setSeatName($seatName = null)
    {
        // validation for constraint: string
        if (!is_null($seatName) && !is_string($seatName)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($seatName, true), gettype($seatName)), __LINE__);
        }
        if (is_null($seatName) || (is_array($seatName) && empty($seatName))) {
            unset($this->SeatName);
        } else {
            $this->SeatName = $seatName;
        }
        return $this;
    }
}
