<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for
 * TextMessageOutboxSelection_With_Vehicle_Selection_And_Replies StructType
 * @subpackage Structs
 */
class TextMessageOutboxSelection_With_Vehicle_Selection_And_Replies extends TextMessageOutboxSelection
{
    /**
     * The IncludeReplies
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * - nillable: true
     * @var bool
     */
    public $IncludeReplies;
    /**
     * The Vehicles
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfIdentifierVehicle
     */
    public $Vehicles;
    /**
     * Constructor method for
     * TextMessageOutboxSelection_With_Vehicle_Selection_And_Replies
     * @uses TextMessageOutboxSelection_With_Vehicle_Selection_And_Replies::setIncludeReplies()
     * @uses TextMessageOutboxSelection_With_Vehicle_Selection_And_Replies::setVehicles()
     * @param bool $includeReplies
     * @param \ArrayType\ArrayOfIdentifierVehicle $vehicles
     */
    public function __construct($includeReplies = null, \ArrayType\ArrayOfIdentifierVehicle $vehicles = null)
    {
        $this
            ->setIncludeReplies($includeReplies)
            ->setVehicles($vehicles);
    }
    /**
     * Get IncludeReplies value
     * @return bool
     */
    public function getIncludeReplies()
    {
        return $this->IncludeReplies;
    }
    /**
     * Set IncludeReplies value
     * @param bool $includeReplies
     * @return \StructType\TextMessageOutboxSelection_With_Vehicle_Selection_And_Replies
     */
    public function setIncludeReplies($includeReplies = null)
    {
        // validation for constraint: boolean
        if (!is_null($includeReplies) && !is_bool($includeReplies)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($includeReplies, true), gettype($includeReplies)), __LINE__);
        }
        $this->IncludeReplies = $includeReplies;
        return $this;
    }
    /**
     * Get Vehicles value
     * @return \ArrayType\ArrayOfIdentifierVehicle|null
     */
    public function getVehicles()
    {
        return $this->Vehicles;
    }
    /**
     * Set Vehicles value
     * @param \ArrayType\ArrayOfIdentifierVehicle $vehicles
     * @return \StructType\TextMessageOutboxSelection_With_Vehicle_Selection_And_Replies
     */
    public function setVehicles(\ArrayType\ArrayOfIdentifierVehicle $vehicles = null)
    {
        $this->Vehicles = $vehicles;
        return $this;
    }
}
