hendrikmaus/reynaldo

View on GitHub
src/Elements/ApiHttpResponse.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace Hmaus\Reynaldo\Elements;

interface ApiHttpResponse extends ApiElement
{
    /**
     * Get HTTP status code
     *
     * @return int
     */
    public function getStatusCode();

    /**
     * Get headers as `header name`: `header value` pairs
     *
     * @return array|null
     */
    public function getHeaders();

    /**
     * @return bool
     */
    public function hasMessageBody();

    /**
     * @return bool
     */
    public function hasMessageBodySchema();

    /**
     * @return ApiAsset|null
     */
    public function getMessageBodyAsset();

    /**
     * @return ApiAsset|null
     */
    public function getMessageBodySchemaAsset();

    /**
     * @return ApiDataStructure
     */
    public function getDataStructure();
}