<?php

namespace SelectSiparis;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetMagazalarResponse StructType
 * @subpackage Structs
 */
class GetMagazalarResponse extends AbstractStructBase
{
    /**
     * The GetMagazalarResult
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \SelectSiparis\ArrayOfWebMagaza
     */
    public $GetMagazalarResult;
    /**
     * Constructor method for GetMagazalarResponse
     * @uses GetMagazalarResponse::setGetMagazalarResult()
     * @param \SelectSiparis\ArrayOfWebMagaza $getMagazalarResult
     */
    public function __construct(\SelectSiparis\ArrayOfWebMagaza $getMagazalarResult = null)
    {
        $this
            ->setGetMagazalarResult($getMagazalarResult);
    }
    /**
     * Get GetMagazalarResult 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 \SelectSiparis\ArrayOfWebMagaza|null
     */
    public function getGetMagazalarResult()
    {
        return isset($this->GetMagazalarResult) ? $this->GetMagazalarResult : null;
    }
    /**
     * Set GetMagazalarResult 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 \SelectSiparis\ArrayOfWebMagaza $getMagazalarResult
     * @return \SelectSiparis\GetMagazalarResponse
     */
    public function setGetMagazalarResult(\SelectSiparis\ArrayOfWebMagaza $getMagazalarResult = null)
    {
        if (is_null($getMagazalarResult) || (is_array($getMagazalarResult) && empty($getMagazalarResult))) {
            unset($this->GetMagazalarResult);
        } else {
            $this->GetMagazalarResult = $getMagazalarResult;
        }
        return $this;
    }
}
