<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for UnknownParticipantErrorStructure StructType
 * Meta informations extracted from the WSDL
 * - documentation: Type for Error: Unknown Participant. +SIRI v2.0
 * @subpackage Structs
 */
class UnknownParticipantErrorStructure extends ErrorCodeStructure
{
    /**
     * The ParticipantRef
     * Meta informations extracted from the WSDL
     * - documentation: Reference to Participant who is unknown. + SIRI v2.0
     * - minOccurs: 0
     * @var \StructType\ParticipantRefStructure
     */
    public $ParticipantRef;
    /**
     * Constructor method for UnknownParticipantErrorStructure
     * @uses UnknownParticipantErrorStructure::setParticipantRef()
     * @param \StructType\ParticipantRefStructure $participantRef
     */
    public function __construct(\StructType\ParticipantRefStructure $participantRef = null)
    {
        $this
            ->setParticipantRef($participantRef);
    }
    /**
     * Get ParticipantRef value
     * @return \StructType\ParticipantRefStructure|null
     */
    public function getParticipantRef()
    {
        return $this->ParticipantRef;
    }
    /**
     * Set ParticipantRef value
     * @param \StructType\ParticipantRefStructure $participantRef
     * @return \StructType\UnknownParticipantErrorStructure
     */
    public function setParticipantRef(\StructType\ParticipantRefStructure $participantRef = null)
    {
        $this->ParticipantRef = $participantRef;
        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\UnknownParticipantErrorStructure
     */
    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__;
    }
}
