ApiResponse::getFacadeAccessor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Gcsc\LaravelApiResponse\Facades;
4
5
use Illuminate\Http\JsonResponse;
6
use Illuminate\Support\Facades\Facade;
7
8
/**
9
 * Class ApiResponse.
10
 *
11
 * @method  static JsonResponse continue($data = [], string $message = null)
12
 * @method  static JsonResponse switchingProtocols($data = [], string $message = null)
13
 * @method  static JsonResponse processing($data = [], string $message = null)
14
 * @method  static JsonResponse ok($data = [], string $message = null)
15
 * @method  static JsonResponse created($data = [], string $message = null)
16
 * @method  static JsonResponse accepted($data = [], string $message = null)
17
 * @method  static JsonResponse nonAuthoritativeInformation($data = [], string $message = null)
18
 * @method  static JsonResponse noContent($data = [], string $message = null)
19
 * @method  static JsonResponse resetContent($data = [], string $message = null)
20
 * @method  static JsonResponse partialContent($data = [], string $message = null)
21
 * @method  static JsonResponse multiStatus($data = [], string $message = null)
22
 * @method  static JsonResponse alreadyReported($data = [], string $message = null)
23
 * @method  static JsonResponse imUsed($data = [], string $message = null)
24
 * @method  static JsonResponse multipleChoices($data = [], string $message = null)
25
 * @method  static JsonResponse movedPermanently($data = [], string $message = null)
26
 * @method  static JsonResponse found($data = [], string $message = null)
27
 * @method  static JsonResponse seeOther($data = [], string $message = null)
28
 * @method  static JsonResponse notModified($data = [], string $message = null)
29
 * @method  static JsonResponse useProxy($data = [], string $message = null)
30
 * @method  static JsonResponse reserved($data = [], string $message = null)
31
 * @method  static JsonResponse temporaryRedirect($data = [], string $message = null)
32
 * @method  static JsonResponse permanentRedirect($data = [], string $message = null)
33
 * @method  static JsonResponse badRequest($data = [], string $message = null)
34
 * @method  static JsonResponse unauthorized($data = [], string $message = null)
35
 * @method  static JsonResponse paymentRequired($data = [], string $message = null)
36
 * @method  static JsonResponse forbidden($data = [], string $message = null)
37
 * @method  static JsonResponse notFound($data = [], string $message = null)
38
 * @method  static JsonResponse methodNotAllowed($data = [], string $message = null)
39
 * @method  static JsonResponse notAcceptable($data = [], string $message = null)
40
 * @method  static JsonResponse proxyAuthenticationRequired($data = [], string $message = null)
41
 * @method  static JsonResponse requestTimeout($data = [], string $message = null)
42
 * @method  static JsonResponse conflict($data = [], string $message = null)
43
 * @method  static JsonResponse gone($data = [], string $message = null)
44
 * @method  static JsonResponse lengthRequired($data = [], string $message = null)
45
 * @method  static JsonResponse preconditionFailed($data = [], string $message = null)
46
 * @method  static JsonResponse payloadTooLarge($data = [], string $message = null)
47
 * @method  static JsonResponse uriTooLong($data = [], string $message = null)
48
 * @method  static JsonResponse unsupportedMediaType($data = [], string $message = null)
49
 * @method  static JsonResponse rangeNotSatisfiable($data = [], string $message = null)
50
 * @method  static JsonResponse expectationFailed($data = [], string $message = null)
51
 * @method  static JsonResponse imATeapot($data = [], string $message = null)
52
 * @method  static JsonResponse misdirectedRequest($data = [], string $message = null)
53
 * @method  static JsonResponse unprocessableEntity($data = [], string $message = null)
54
 * @method  static JsonResponse locked($data = [], string $message = null)
55
 * @method  static JsonResponse failedDependency($data = [], string $message = null)
56
 * @method  static JsonResponse tooEarly($data = [], string $message = null)
57
 * @method  static JsonResponse upgradeRequired($data = [], string $message = null)
58
 * @method  static JsonResponse preconditionRequired($data = [], string $message = null)
59
 * @method  static JsonResponse tooManyRequests($data = [], string $message = null)
60
 * @method  static JsonResponse requestHeaderFieldsTooLarge($data = [], string $message = null)
61
 * @method  static JsonResponse unavailableForLegalReasons($data = [], string $message = null)
62
 * @method  static JsonResponse internalServerError($data = [], string $message = null)
63
 * @method  static JsonResponse notImplemented($data = [], string $message = null)
64
 * @method  static JsonResponse badGateway($data = [], string $message = null)
65
 * @method  static JsonResponse serviceUnavailable($data = [], string $message = null)
66
 * @method  static JsonResponse gatewayTimeout($data = [], string $message = null)
67
 * @method  static JsonResponse versionNotSupported($data = [], string $message = null)
68
 * @method  static JsonResponse variantAlsoNegotiates($data = [], string $message = null)
69
 * @method  static JsonResponse insufficientStorage($data = [], string $message = null)
70
 * @method  static JsonResponse loopDetected($data = [], string $message = null)
71
 * @method  static JsonResponse notExtended($data = [], string $message = null)
72
 * @method  static JsonResponse networkAuthenticationRequired($data = [], string $message = null)
73
 * @method  static \Gcsc\LaravelApiResponse\ApiResponse setMeta(array $meta, bool $withoutDefault = false)
74
 * @method  static \Gcsc\LaravelApiResponse\ApiResponse setData(array $data)
75
 * @method  static \Gcsc\LaravelApiResponse\ApiResponse setMessage(string $message)
76
 * @method  static \Gcsc\LaravelApiResponse\ApiResponse setCode(int $code)
77
 * @method  static \Gcsc\LaravelApiResponse\ApiResponse setHeaders(array $headers)
78
 * @method  static \Gcsc\LaravelApiResponse\ApiResponse setOptions($options)
79
 */
80
class ApiResponse extends Facade
81
{
82
    /**
83
     * Get the registered name of the component.
84
     *
85
     * @return string
86
     */
87
    protected static function getFacadeAccessor()
88
    {
89
        return 'api-response';
90
    }
91
}
92