<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for BizAction.Sale.Accounting.CancelDeductAction.Request
 * StructType
 * @subpackage Structs
 */
class BizAction_Sale_Accounting_CancelDeductAction_Request extends AnyEntity
{
    /**
     * The Ids
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var string
     */
    public $Ids;
    /**
     * Constructor method for BizAction.Sale.Accounting.CancelDeductAction.Request
     * @uses BizAction_Sale_Accounting_CancelDeductAction_Request::setIds()
     * @param string $ids
     */
    public function __construct($ids = null)
    {
        $this
            ->setIds($ids);
    }
    /**
     * Get Ids 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 string|null
     */
    public function getIds()
    {
        return isset($this->Ids) ? $this->Ids : null;
    }
    /**
     * Set Ids 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 string $ids
     * @return \patest\StructType\BizAction_Sale_Accounting_CancelDeductAction_Request
     */
    public function setIds($ids = null)
    {
        // validation for constraint: string
        if (!is_null($ids) && !is_string($ids)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($ids, true), gettype($ids)), __LINE__);
        }
        if (is_null($ids) || (is_array($ids) && empty($ids))) {
            unset($this->Ids);
        } else {
            $this->Ids = $ids;
        }
        return $this;
    }
}
