<?php

namespace ModulesGarden\Servers\ZimbraEmail\App\Libs\Zimbra\Components\Api\Soap\Interfaces;


use ModulesGarden\Servers\ZimbraEmail\App\Libs\Zimbra\Components\Api\Soap\Connection;
use ModulesGarden\Servers\ZimbraEmail\App\Libs\Zimbra\Components\Api\Soap\Traits\ErrorHandler;

/**
 *
 * Created by PhpStorm.
 * User: Tomasz Bielecki ( tomasz.bi@modulesgarden.com )
 * Date: 28.08.19
 * Time: 13:56
 * Class AbstractAction
 */
abstract class AbstractAction extends AbstractConnection
{
    use ErrorHandler;

    /**
     * @var \ModulesGarden\Servers\ZimbraEmail\App\Libs\Zimbra\Components\Api\Soap\Response
     */
    protected $lastResult = null;

    /**
     * @return |null
     */
    public function getLastResult()
    {
        return $this->lastResult;
    }

    /**
     * @param $lastResult
     * @return \ModulesGarden\Servers\ZimbraEmail\App\Libs\Zimbra\Components\Api\Soap\Response
     */
    public function setLastResult($lastResult)
    {
        $this->lastResult = $lastResult;
        return $this;
    }

}