jwiegant/laravel-tikkie

View on GitHub
src/Application.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Cloudmazing\Tikkie;

use Cloudmazing\Tikkie\Response\ApplicationResponse;
use Exception;

/**
 * Class Application.
 *
 * @category Calls
 *
 * @author   Job Wiegant <job@cloudmazing.nl>
 * @license  http://www.opensource.org/licenses/mit-license.html  MIT License
 */
class Application extends BaseRequest
{
    /**
     * Create a sandbox Application.
     *
     * @return Response\ApplicationResponse|Response\ErrorListResponse
     *
     * @throws Exception
     */
    public function create()
    {
        // Create the application request
        $applicationRequest = new Request\Application();

        return $this->checkResponse(
            $this->postRequest(
                $applicationRequest
            ),
            ApplicationResponse::class
        );
    }
}