<?php

namespace Easy\EasyStruct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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