<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ActivityRemarkItem StructType
 * @subpackage Structs
 */
class ActivityRemarkItem extends AbstractStructBase
{
    /**
     * The Id
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var int
     */
    public $Id;
    /**
     * The EventDate
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var string
     */
    public $EventDate;
    /**
     * The SynchronizationDate
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var string
     */
    public $SynchronizationDate;
    /**
     * The SynchronizationId
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var int
     */
    public $SynchronizationId;
    /**
     * The IsTreated
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $IsTreated;
    /**
     * The IsActive
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * @var bool
     */
    public $IsActive;
    /**
     * The CreatedBy
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\IdentifierPerson
     */
    public $CreatedBy;
    /**
     * The Driver
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\IdentifierPerson
     */
    public $Driver;
    /**
     * The Truck
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\IdentifierVehicleResult
     */
    public $Truck;
    /**
     * The Trailer
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\IdentifierVehicleResult
     */
    public $Trailer;
    /**
     * The Subject
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $Subject;
    /**
     * The Remark
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $Remark;
    /**
     * The TreatedBy
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\IdentifierPerson
     */
    public $TreatedBy;
    /**
     * Constructor method for ActivityRemarkItem
     * @uses ActivityRemarkItem::setId()
     * @uses ActivityRemarkItem::setEventDate()
     * @uses ActivityRemarkItem::setSynchronizationDate()
     * @uses ActivityRemarkItem::setSynchronizationId()
     * @uses ActivityRemarkItem::setIsTreated()
     * @uses ActivityRemarkItem::setIsActive()
     * @uses ActivityRemarkItem::setCreatedBy()
     * @uses ActivityRemarkItem::setDriver()
     * @uses ActivityRemarkItem::setTruck()
     * @uses ActivityRemarkItem::setTrailer()
     * @uses ActivityRemarkItem::setSubject()
     * @uses ActivityRemarkItem::setRemark()
     * @uses ActivityRemarkItem::setTreatedBy()
     * @param int $id
     * @param string $eventDate
     * @param string $synchronizationDate
     * @param int $synchronizationId
     * @param bool $isTreated
     * @param bool $isActive
     * @param \StructType\IdentifierPerson $createdBy
     * @param \StructType\IdentifierPerson $driver
     * @param \StructType\IdentifierVehicleResult $truck
     * @param \StructType\IdentifierVehicleResult $trailer
     * @param string $subject
     * @param string $remark
     * @param \StructType\IdentifierPerson $treatedBy
     */
    public function __construct($id = null, $eventDate = null, $synchronizationDate = null, $synchronizationId = null, $isTreated = null, $isActive = null, \StructType\IdentifierPerson $createdBy = null, \StructType\IdentifierPerson $driver = null, \StructType\IdentifierVehicleResult $truck = null, \StructType\IdentifierVehicleResult $trailer = null, $subject = null, $remark = null, \StructType\IdentifierPerson $treatedBy = null)
    {
        $this
            ->setId($id)
            ->setEventDate($eventDate)
            ->setSynchronizationDate($synchronizationDate)
            ->setSynchronizationId($synchronizationId)
            ->setIsTreated($isTreated)
            ->setIsActive($isActive)
            ->setCreatedBy($createdBy)
            ->setDriver($driver)
            ->setTruck($truck)
            ->setTrailer($trailer)
            ->setSubject($subject)
            ->setRemark($remark)
            ->setTreatedBy($treatedBy);
    }
    /**
     * Get Id value
     * @return int
     */
    public function getId()
    {
        return $this->Id;
    }
    /**
     * Set Id value
     * @param int $id
     * @return \StructType\ActivityRemarkItem
     */
    public function setId($id = null)
    {
        // validation for constraint: int
        if (!is_null($id) && !(is_int($id) || ctype_digit($id))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($id, true), gettype($id)), __LINE__);
        }
        $this->Id = $id;
        return $this;
    }
    /**
     * Get EventDate value
     * @return string
     */
    public function getEventDate()
    {
        return $this->EventDate;
    }
    /**
     * Set EventDate value
     * @param string $eventDate
     * @return \StructType\ActivityRemarkItem
     */
    public function setEventDate($eventDate = null)
    {
        // validation for constraint: string
        if (!is_null($eventDate) && !is_string($eventDate)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($eventDate, true), gettype($eventDate)), __LINE__);
        }
        $this->EventDate = $eventDate;
        return $this;
    }
    /**
     * Get SynchronizationDate value
     * @return string
     */
    public function getSynchronizationDate()
    {
        return $this->SynchronizationDate;
    }
    /**
     * Set SynchronizationDate value
     * @param string $synchronizationDate
     * @return \StructType\ActivityRemarkItem
     */
    public function setSynchronizationDate($synchronizationDate = null)
    {
        // validation for constraint: string
        if (!is_null($synchronizationDate) && !is_string($synchronizationDate)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($synchronizationDate, true), gettype($synchronizationDate)), __LINE__);
        }
        $this->SynchronizationDate = $synchronizationDate;
        return $this;
    }
    /**
     * Get SynchronizationId value
     * @return int
     */
    public function getSynchronizationId()
    {
        return $this->SynchronizationId;
    }
    /**
     * Set SynchronizationId value
     * @param int $synchronizationId
     * @return \StructType\ActivityRemarkItem
     */
    public function setSynchronizationId($synchronizationId = null)
    {
        // validation for constraint: int
        if (!is_null($synchronizationId) && !(is_int($synchronizationId) || ctype_digit($synchronizationId))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($synchronizationId, true), gettype($synchronizationId)), __LINE__);
        }
        $this->SynchronizationId = $synchronizationId;
        return $this;
    }
    /**
     * Get IsTreated value
     * @return bool
     */
    public function getIsTreated()
    {
        return $this->IsTreated;
    }
    /**
     * Set IsTreated value
     * @param bool $isTreated
     * @return \StructType\ActivityRemarkItem
     */
    public function setIsTreated($isTreated = null)
    {
        // validation for constraint: boolean
        if (!is_null($isTreated) && !is_bool($isTreated)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isTreated, true), gettype($isTreated)), __LINE__);
        }
        $this->IsTreated = $isTreated;
        return $this;
    }
    /**
     * Get IsActive value
     * @return bool
     */
    public function getIsActive()
    {
        return $this->IsActive;
    }
    /**
     * Set IsActive value
     * @param bool $isActive
     * @return \StructType\ActivityRemarkItem
     */
    public function setIsActive($isActive = null)
    {
        // validation for constraint: boolean
        if (!is_null($isActive) && !is_bool($isActive)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($isActive, true), gettype($isActive)), __LINE__);
        }
        $this->IsActive = $isActive;
        return $this;
    }
    /**
     * Get CreatedBy value
     * @return \StructType\IdentifierPerson|null
     */
    public function getCreatedBy()
    {
        return $this->CreatedBy;
    }
    /**
     * Set CreatedBy value
     * @param \StructType\IdentifierPerson $createdBy
     * @return \StructType\ActivityRemarkItem
     */
    public function setCreatedBy(\StructType\IdentifierPerson $createdBy = null)
    {
        $this->CreatedBy = $createdBy;
        return $this;
    }
    /**
     * Get Driver value
     * @return \StructType\IdentifierPerson|null
     */
    public function getDriver()
    {
        return $this->Driver;
    }
    /**
     * Set Driver value
     * @param \StructType\IdentifierPerson $driver
     * @return \StructType\ActivityRemarkItem
     */
    public function setDriver(\StructType\IdentifierPerson $driver = null)
    {
        $this->Driver = $driver;
        return $this;
    }
    /**
     * Get Truck value
     * @return \StructType\IdentifierVehicleResult|null
     */
    public function getTruck()
    {
        return $this->Truck;
    }
    /**
     * Set Truck value
     * @param \StructType\IdentifierVehicleResult $truck
     * @return \StructType\ActivityRemarkItem
     */
    public function setTruck(\StructType\IdentifierVehicleResult $truck = null)
    {
        $this->Truck = $truck;
        return $this;
    }
    /**
     * Get Trailer value
     * @return \StructType\IdentifierVehicleResult|null
     */
    public function getTrailer()
    {
        return $this->Trailer;
    }
    /**
     * Set Trailer value
     * @param \StructType\IdentifierVehicleResult $trailer
     * @return \StructType\ActivityRemarkItem
     */
    public function setTrailer(\StructType\IdentifierVehicleResult $trailer = null)
    {
        $this->Trailer = $trailer;
        return $this;
    }
    /**
     * Get Subject value
     * @return string|null
     */
    public function getSubject()
    {
        return $this->Subject;
    }
    /**
     * Set Subject value
     * @param string $subject
     * @return \StructType\ActivityRemarkItem
     */
    public function setSubject($subject = null)
    {
        // validation for constraint: string
        if (!is_null($subject) && !is_string($subject)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($subject, true), gettype($subject)), __LINE__);
        }
        $this->Subject = $subject;
        return $this;
    }
    /**
     * Get Remark value
     * @return string|null
     */
    public function getRemark()
    {
        return $this->Remark;
    }
    /**
     * Set Remark value
     * @param string $remark
     * @return \StructType\ActivityRemarkItem
     */
    public function setRemark($remark = null)
    {
        // validation for constraint: string
        if (!is_null($remark) && !is_string($remark)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($remark, true), gettype($remark)), __LINE__);
        }
        $this->Remark = $remark;
        return $this;
    }
    /**
     * Get TreatedBy value
     * @return \StructType\IdentifierPerson|null
     */
    public function getTreatedBy()
    {
        return $this->TreatedBy;
    }
    /**
     * Set TreatedBy value
     * @param \StructType\IdentifierPerson $treatedBy
     * @return \StructType\ActivityRemarkItem
     */
    public function setTreatedBy(\StructType\IdentifierPerson $treatedBy = null)
    {
        $this->TreatedBy = $treatedBy;
        return $this;
    }
}
