mirovit/ionic-platform-sdk

View on GitHub
src/Response/ResponseMeta.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Mirovit\IonicPlatformSDK\Response;


class ResponseMeta extends Responder
{
    /**
     * Whether the request returned a response
     * within 2xx range.
     *
     * @return bool
     */
    public function isSuccessful()
    {
        $status = (int)$this->get('status');
        return $status >= 200 && $status <= 299;
    }
}