<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for PubSubEventArgs StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:PubSubEventArgs
 * @subpackage Structs
 */
class PubSubEventArgs extends ExtensibleDataContract
{
    /**
     * The SentDateTimeUtc
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $SentDateTimeUtc;
    /**
     * Constructor method for PubSubEventArgs
     * @uses PubSubEventArgs::setSentDateTimeUtc()
     * @param string $sentDateTimeUtc
     */
    public function __construct($sentDateTimeUtc = null)
    {
        $this
            ->setSentDateTimeUtc($sentDateTimeUtc);
    }
    /**
     * Get SentDateTimeUtc value
     * @return string|null
     */
    public function getSentDateTimeUtc()
    {
        return $this->SentDateTimeUtc;
    }
    /**
     * Set SentDateTimeUtc value
     * @param string $sentDateTimeUtc
     * @return \patest\StructType\PubSubEventArgs
     */
    public function setSentDateTimeUtc($sentDateTimeUtc = null)
    {
        // validation for constraint: string
        if (!is_null($sentDateTimeUtc) && !is_string($sentDateTimeUtc)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($sentDateTimeUtc, true), gettype($sentDateTimeUtc)), __LINE__);
        }
        $this->SentDateTimeUtc = $sentDateTimeUtc;
        return $this;
    }
}
