<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Item_Receipt_Line_Replacement_Serial_DataType StructType
 * Meta information extracted from the WSDL
 * - documentation: Item Receipt Line Replacement Serial Data
 * @subpackage Structs
 */
class Item_Receipt_Line_Replacement_Serial_DataType extends AbstractStructBase
{
    /**
     * The Serial_Identifier
     * Meta information extracted from the WSDL
     * - documentation: Serial Identifier
     * - maxOccurs: 1
     * @var string
     */
    public $Serial_Identifier;
    /**
     * Constructor method for Item_Receipt_Line_Replacement_Serial_DataType
     * @uses Item_Receipt_Line_Replacement_Serial_DataType::setSerial_Identifier()
     * @param string $serial_Identifier
     */
    public function __construct($serial_Identifier = null)
    {
        $this
            ->setSerial_Identifier($serial_Identifier);
    }
    /**
     * Get Serial_Identifier value
     * @return string|null
     */
    public function getSerial_Identifier()
    {
        return $this->Serial_Identifier;
    }
    /**
     * Set Serial_Identifier value
     * @param string $serial_Identifier
     * @return \StructType\Item_Receipt_Line_Replacement_Serial_DataType
     */
    public function setSerial_Identifier($serial_Identifier = null)
    {
        // validation for constraint: string
        if (!is_null($serial_Identifier) && !is_string($serial_Identifier)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($serial_Identifier, true), gettype($serial_Identifier)), __LINE__);
        }
        $this->Serial_Identifier = $serial_Identifier;
        return $this;
    }
}
