<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Insert_new_job_on_trip StructType
 * @subpackage Structs
 */
class Insert_new_job_on_trip_1 extends UpdatePlanning
{
    /**
     * The TripID
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $TripID;
    /**
     * The PlaceID
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $PlaceID;
    /**
     * The Jobs
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJobInsert
     */
    public $Jobs;
    /**
     * Constructor method for Insert_new_job_on_trip
     * @uses Insert_new_job_on_trip_1::setTripID()
     * @uses Insert_new_job_on_trip_1::setPlaceID()
     * @uses Insert_new_job_on_trip_1::setJobs()
     * @param string $tripID
     * @param string $placeID
     * @param \ArrayType\ArrayOfJobInsert $jobs
     */
    public function __construct($tripID = null, $placeID = null, \ArrayType\ArrayOfJobInsert $jobs = null)
    {
        $this
            ->setTripID($tripID)
            ->setPlaceID($placeID)
            ->setJobs($jobs);
    }
    /**
     * Get TripID value
     * @return string|null
     */
    public function getTripID()
    {
        return $this->TripID;
    }
    /**
     * Set TripID value
     * @param string $tripID
     * @return \StructType\Insert_new_job_on_trip_1
     */
    public function setTripID($tripID = null)
    {
        // validation for constraint: string
        if (!is_null($tripID) && !is_string($tripID)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($tripID, true), gettype($tripID)), __LINE__);
        }
        $this->TripID = $tripID;
        return $this;
    }
    /**
     * Get PlaceID value
     * @return string|null
     */
    public function getPlaceID()
    {
        return $this->PlaceID;
    }
    /**
     * Set PlaceID value
     * @param string $placeID
     * @return \StructType\Insert_new_job_on_trip_1
     */
    public function setPlaceID($placeID = null)
    {
        // validation for constraint: string
        if (!is_null($placeID) && !is_string($placeID)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($placeID, true), gettype($placeID)), __LINE__);
        }
        $this->PlaceID = $placeID;
        return $this;
    }
    /**
     * Get Jobs value
     * @return \ArrayType\ArrayOfJobInsert|null
     */
    public function getJobs()
    {
        return $this->Jobs;
    }
    /**
     * Set Jobs value
     * @param \ArrayType\ArrayOfJobInsert $jobs
     * @return \StructType\Insert_new_job_on_trip_1
     */
    public function setJobs(\ArrayType\ArrayOfJobInsert $jobs = null)
    {
        $this->Jobs = $jobs;
        return $this;
    }
}
