<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Printing.PrintableItem.Comment StructType
 * @subpackage Structs
 */
class Printing_PrintableItem_Comment extends AnyEntity
{
    /**
     * The Comment
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\GlobalString
     */
    public $Comment;
    /**
     * The CommentTypeName
     * Meta information extracted from the WSDL
     * - documentation: Calculated.
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\GlobalString
     */
    public $CommentTypeName;
    /**
     * The Date
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $Date;
    /**
     * The ExtraField1
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $ExtraField1;
    /**
     * The ExtraField2
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $ExtraField2;
    /**
     * The ExtraField3
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $ExtraField3;
    /**
     * The ExtraField4
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $ExtraField4;
    /**
     * The SystemName
     * Meta information extracted from the WSDL
     * - documentation: Calculated.
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $SystemName;
    /**
     * Constructor method for Printing.PrintableItem.Comment
     * @uses Printing_PrintableItem_Comment::setComment()
     * @uses Printing_PrintableItem_Comment::setCommentTypeName()
     * @uses Printing_PrintableItem_Comment::setDate()
     * @uses Printing_PrintableItem_Comment::setExtraField1()
     * @uses Printing_PrintableItem_Comment::setExtraField2()
     * @uses Printing_PrintableItem_Comment::setExtraField3()
     * @uses Printing_PrintableItem_Comment::setExtraField4()
     * @uses Printing_PrintableItem_Comment::setSystemName()
     * @param \patest\StructType\GlobalString $comment
     * @param \patest\StructType\GlobalString $commentTypeName
     * @param string $date
     * @param string $extraField1
     * @param string $extraField2
     * @param string $extraField3
     * @param string $extraField4
     * @param string $systemName
     */
    public function __construct(\patest\StructType\GlobalString $comment = null, \patest\StructType\GlobalString $commentTypeName = null, $date = null, $extraField1 = null, $extraField2 = null, $extraField3 = null, $extraField4 = null, $systemName = null)
    {
        $this
            ->setComment($comment)
            ->setCommentTypeName($commentTypeName)
            ->setDate($date)
            ->setExtraField1($extraField1)
            ->setExtraField2($extraField2)
            ->setExtraField3($extraField3)
            ->setExtraField4($extraField4)
            ->setSystemName($systemName);
    }
    /**
     * Get Comment value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \patest\StructType\GlobalString|null
     */
    public function getComment()
    {
        return isset($this->Comment) ? $this->Comment : null;
    }
    /**
     * Set Comment value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \patest\StructType\GlobalString $comment
     * @return \patest\StructType\Printing_PrintableItem_Comment
     */
    public function setComment(\patest\StructType\GlobalString $comment = null)
    {
        if (is_null($comment) || (is_array($comment) && empty($comment))) {
            unset($this->Comment);
        } else {
            $this->Comment = $comment;
        }
        return $this;
    }
    /**
     * Get CommentTypeName value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \patest\StructType\GlobalString|null
     */
    public function getCommentTypeName()
    {
        return isset($this->CommentTypeName) ? $this->CommentTypeName : null;
    }
    /**
     * Set CommentTypeName value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \patest\StructType\GlobalString $commentTypeName
     * @return \patest\StructType\Printing_PrintableItem_Comment
     */
    public function setCommentTypeName(\patest\StructType\GlobalString $commentTypeName = null)
    {
        if (is_null($commentTypeName) || (is_array($commentTypeName) && empty($commentTypeName))) {
            unset($this->CommentTypeName);
        } else {
            $this->CommentTypeName = $commentTypeName;
        }
        return $this;
    }
    /**
     * Get Date value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getDate()
    {
        return isset($this->Date) ? $this->Date : null;
    }
    /**
     * Set Date value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $date
     * @return \patest\StructType\Printing_PrintableItem_Comment
     */
    public function setDate($date = null)
    {
        // validation for constraint: string
        if (!is_null($date) && !is_string($date)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($date, true), gettype($date)), __LINE__);
        }
        if (is_null($date) || (is_array($date) && empty($date))) {
            unset($this->Date);
        } else {
            $this->Date = $date;
        }
        return $this;
    }
    /**
     * Get ExtraField1 value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getExtraField1()
    {
        return isset($this->ExtraField1) ? $this->ExtraField1 : null;
    }
    /**
     * Set ExtraField1 value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $extraField1
     * @return \patest\StructType\Printing_PrintableItem_Comment
     */
    public function setExtraField1($extraField1 = null)
    {
        // validation for constraint: string
        if (!is_null($extraField1) && !is_string($extraField1)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($extraField1, true), gettype($extraField1)), __LINE__);
        }
        if (is_null($extraField1) || (is_array($extraField1) && empty($extraField1))) {
            unset($this->ExtraField1);
        } else {
            $this->ExtraField1 = $extraField1;
        }
        return $this;
    }
    /**
     * Get ExtraField2 value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getExtraField2()
    {
        return isset($this->ExtraField2) ? $this->ExtraField2 : null;
    }
    /**
     * Set ExtraField2 value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $extraField2
     * @return \patest\StructType\Printing_PrintableItem_Comment
     */
    public function setExtraField2($extraField2 = null)
    {
        // validation for constraint: string
        if (!is_null($extraField2) && !is_string($extraField2)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($extraField2, true), gettype($extraField2)), __LINE__);
        }
        if (is_null($extraField2) || (is_array($extraField2) && empty($extraField2))) {
            unset($this->ExtraField2);
        } else {
            $this->ExtraField2 = $extraField2;
        }
        return $this;
    }
    /**
     * Get ExtraField3 value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getExtraField3()
    {
        return isset($this->ExtraField3) ? $this->ExtraField3 : null;
    }
    /**
     * Set ExtraField3 value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $extraField3
     * @return \patest\StructType\Printing_PrintableItem_Comment
     */
    public function setExtraField3($extraField3 = null)
    {
        // validation for constraint: string
        if (!is_null($extraField3) && !is_string($extraField3)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($extraField3, true), gettype($extraField3)), __LINE__);
        }
        if (is_null($extraField3) || (is_array($extraField3) && empty($extraField3))) {
            unset($this->ExtraField3);
        } else {
            $this->ExtraField3 = $extraField3;
        }
        return $this;
    }
    /**
     * Get ExtraField4 value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getExtraField4()
    {
        return isset($this->ExtraField4) ? $this->ExtraField4 : null;
    }
    /**
     * Set ExtraField4 value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $extraField4
     * @return \patest\StructType\Printing_PrintableItem_Comment
     */
    public function setExtraField4($extraField4 = null)
    {
        // validation for constraint: string
        if (!is_null($extraField4) && !is_string($extraField4)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($extraField4, true), gettype($extraField4)), __LINE__);
        }
        if (is_null($extraField4) || (is_array($extraField4) && empty($extraField4))) {
            unset($this->ExtraField4);
        } else {
            $this->ExtraField4 = $extraField4;
        }
        return $this;
    }
    /**
     * Get SystemName value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return string|null
     */
    public function getSystemName()
    {
        return isset($this->SystemName) ? $this->SystemName : null;
    }
    /**
     * Set SystemName value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param string $systemName
     * @return \patest\StructType\Printing_PrintableItem_Comment
     */
    public function setSystemName($systemName = null)
    {
        // validation for constraint: string
        if (!is_null($systemName) && !is_string($systemName)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($systemName, true), gettype($systemName)), __LINE__);
        }
        if (is_null($systemName) || (is_array($systemName) && empty($systemName))) {
            unset($this->SystemName);
        } else {
            $this->SystemName = $systemName;
        }
        return $this;
    }
}
