<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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