<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for SerializedCompactListOfSeatRestrictionsInfo8Q8HnG_P7
 * StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:SerializedCompactListOfSeatRestrictionsInfo8Q8HnG_P7
 * @subpackage Structs
 */
class SerializedCompactListOfSeatRestrictionsInfo8Q8HnG_P7 extends SerializedCompactListBase
{
    /**
     * The Count
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var int
     */
    public $Count;
    /**
     * Constructor method for SerializedCompactListOfSeatRestrictionsInfo8Q8HnG_P7
     * @uses SerializedCompactListOfSeatRestrictionsInfo8Q8HnG_P7::setCount()
     * @param int $count
     */
    public function __construct($count = null)
    {
        $this
            ->setCount($count);
    }
    /**
     * Get Count value
     * @return int|null
     */
    public function getCount()
    {
        return $this->Count;
    }
    /**
     * Set Count value
     * @param int $count
     * @return \patest\StructType\SerializedCompactListOfSeatRestrictionsInfo8Q8HnG_P7
     */
    public function setCount($count = null)
    {
        // validation for constraint: int
        if (!is_null($count) && !(is_int($count) || ctype_digit($count))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($count, true), gettype($count)), __LINE__);
        }
        $this->Count = $count;
        return $this;
    }
}
