<?php

namespace SelectSiparis;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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