<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for AbstractRequiredReferencingItemStructure StructType
 * Meta informations extracted from the WSDL
 * - documentation: Type for an Activity that references a previous Activity.
 * @subpackage Structs
 */
abstract class AbstractRequiredReferencingItemStructure extends AbstractItemStructure
{
    /**
     * The ItemRef
     * Meta informations extracted from the WSDL
     * - documentation: Reference to an Activity Element of a delivery.
     * @var \StructType\ItemRefStructure
     */
    public $ItemRef;
    /**
     * Constructor method for AbstractRequiredReferencingItemStructure
     * @uses AbstractRequiredReferencingItemStructure::setItemRef()
     * @param \StructType\ItemRefStructure $itemRef
     */
    public function __construct(\StructType\ItemRefStructure $itemRef = null)
    {
        $this
            ->setItemRef($itemRef);
    }
    /**
     * Get ItemRef value
     * @return \StructType\ItemRefStructure|null
     */
    public function getItemRef()
    {
        return $this->ItemRef;
    }
    /**
     * Set ItemRef value
     * @param \StructType\ItemRefStructure $itemRef
     * @return \StructType\AbstractRequiredReferencingItemStructure
     */
    public function setItemRef(\StructType\ItemRefStructure $itemRef = null)
    {
        $this->ItemRef = $itemRef;
        return $this;
    }
    /**
     * Method called when an object has been exported with var_export() functions
     * It allows to return an object instantiated with the values
     * @see AbstractStructBase::__set_state()
     * @uses AbstractStructBase::__set_state()
     * @param array $array the exported values
     * @return \StructType\AbstractRequiredReferencingItemStructure
     */
    public static function __set_state(array $array)
    {
        return parent::__set_state($array);
    }
    /**
     * Method returning the class name
     * @return string __CLASS__
     */
    public function __toString()
    {
        return __CLASS__;
    }
}
