<?php
/**
 * Created by PhpStorm.
 * User: srecko
 * Date: 3.5.2017.
 * Time: 13:10
 */

namespace AuthStack\Driver\SOAP\BPS\Lib\Response;


use AuthStack\Driver\SOAP\BPS\Lib\AuthStatus;

class AuthenticateResponse
{
    public $_auth_status;

    public $version;
    public $dataset;
    public $authentication;
    public $authenticationCode;
    public $bpsId;
    public $authenticated;
    public $fail;
    public $token;

    /**
     * @return bool
     */
    public function isSuccess()
    {
        return $this->_auth_status == AuthStatus::STATUS_OK;
    }
}