<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Requestor_for_Issue_Purchase_Order_Outbound_Sub_ViewType
 * StructType
 * Meta information extracted from the WSDL
 * - documentation: Element containing Requestor Name
 * @subpackage Structs
 */
class Requestor_for_Issue_Purchase_Order_Outbound_Sub_ViewType extends AbstractStructBase
{
    /**
     * The Requestor_Name
     * Meta information extracted from the WSDL
     * - documentation: Purchase Order Requester's NamecXML Notes:Punchout Order
     * MessageRequest/OrderRequest/OrderRequestHeader/ShipTo/PostalAddress/DeliverToandRequest/OrderRequest/OrderRequestHeader/BillTo/PostalAddress/DeliverToandRequest/OrderRequest/OrderRequestHeader/Contact/PostalAddress/DeliverTo
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $Requestor_Name;
    /**
     * Constructor method for Requestor_for_Issue_Purchase_Order_Outbound_Sub_ViewType
     * @uses Requestor_for_Issue_Purchase_Order_Outbound_Sub_ViewType::setRequestor_Name()
     * @param string $requestor_Name
     */
    public function __construct($requestor_Name = null)
    {
        $this
            ->setRequestor_Name($requestor_Name);
    }
    /**
     * Get Requestor_Name value
     * @return string|null
     */
    public function getRequestor_Name()
    {
        return $this->Requestor_Name;
    }
    /**
     * Set Requestor_Name value
     * @param string $requestor_Name
     * @return \StructType\Requestor_for_Issue_Purchase_Order_Outbound_Sub_ViewType
     */
    public function setRequestor_Name($requestor_Name = null)
    {
        // validation for constraint: string
        if (!is_null($requestor_Name) && !is_string($requestor_Name)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($requestor_Name, true), gettype($requestor_Name)), __LINE__);
        }
        $this->Requestor_Name = $requestor_Name;
        return $this;
    }
}
