<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetVoucherPDFA6MarginsResponse EasyStruct
 * @package Easy
 * @subpackage Structs
 */
class EasyGetVoucherPDFA6MarginsResponse extends AbstractStructBase
{
    /**
     * The GetVoucherPDFA6MarginsResult
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \Easy\EasyStruct\EasyClsGetVoucherPDFResp
     */
    public $GetVoucherPDFA6MarginsResult;
    /**
     * Constructor method for GetVoucherPDFA6MarginsResponse
     * @uses EasyGetVoucherPDFA6MarginsResponse::setGetVoucherPDFA6MarginsResult()
     * @param \Easy\EasyStruct\EasyClsGetVoucherPDFResp $getVoucherPDFA6MarginsResult
     */
    public function __construct(\Easy\EasyStruct\EasyClsGetVoucherPDFResp $getVoucherPDFA6MarginsResult = null)
    {
        $this
            ->setGetVoucherPDFA6MarginsResult($getVoucherPDFA6MarginsResult);
    }
    /**
     * Get GetVoucherPDFA6MarginsResult 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 \Easy\EasyStruct\EasyClsGetVoucherPDFResp|null
     */
    public function getGetVoucherPDFA6MarginsResult()
    {
        return isset($this->GetVoucherPDFA6MarginsResult) ? $this->GetVoucherPDFA6MarginsResult : null;
    }
    /**
     * Set GetVoucherPDFA6MarginsResult 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 \Easy\EasyStruct\EasyClsGetVoucherPDFResp $getVoucherPDFA6MarginsResult
     * @return \Easy\EasyStruct\EasyGetVoucherPDFA6MarginsResponse
     */
    public function setGetVoucherPDFA6MarginsResult(\Easy\EasyStruct\EasyClsGetVoucherPDFResp $getVoucherPDFA6MarginsResult = null)
    {
        if (is_null($getVoucherPDFA6MarginsResult) || (is_array($getVoucherPDFA6MarginsResult) && empty($getVoucherPDFA6MarginsResult))) {
            unset($this->GetVoucherPDFA6MarginsResult);
        } else {
            $this->GetVoucherPDFA6MarginsResult = $getVoucherPDFA6MarginsResult;
        }
        return $this;
    }
}
