<?php
namespace ThurData\Servers\KerioEmail\App\Libs\Kerio\Components\Api\Soap\Traits;

trait ErrorHandler
{

    /**
     * @var
     */
    protected $error;

    /**
     * @param null $error
     * @return $this
     */
    public function setError($error = null)
    {
        $this->error = $error;
        return $this;
    }

    /**
     * @return mixed
     */
    public function getError()
    {
        return $this->error;
    }

}