JsonResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
1
<?php
2
3
namespace ArinaSystems\JsonResponse\Facades;
4
5
use Illuminate\Support\Facades\Facade;
6
7
/**
8
 * JsonResponse.
9
 *
10
 * @method static \Illuminate\Http\JsonResponse json(string|array $status = null, array $attributes = [], array $options = []) Return json response.
11
 * @method static \Illuminate\Http\JsonResponse error(\Throwable $exception, string|array $status = null, array $attributes = [], array $options = []) Return json response with error.
12
 * @method static \ArinaSystems\JsonResponse\Status|\ArinaSystems\JsonResponse\JsonResponse status(string $status = null) Retrieve/Set json response status.
13
 * @method static \ArinaSystems\JsonResponse\Option|mixed options(string|array $key = null, mixed $default = null) Retrieve/Set json response options.
14
 * @method static \ArinaSystems\JsonResponse\Attribute|mixed attributes(string|array $key = null, mixed $default = null) Retrieve/Set json response attributes.
15
 * @method static \ArinaSystems\JsonResponse\JsonResponse setOptions(\ArinaSystems\JsonResponse\Option|array|string $options, mixed $value = null) Set json response options.
16
 * @method static \ArinaSystems\JsonResponse\JsonResponse setAttributes(\ArinaSystems\JsonResponse\Attribute|array|string $attributes, mixed $value = null) Set json response attributes.
17
 * @method static array structure(bool $error = false)
18
 * @method static \ArinaSystems\JsonResponse\JsonResponse instance() Get the current instance of json response builder.
19
 */
20
class JsonResponse extends Facade
21
{
22
    /**
23
     * Get the registered name of the component.
24
     *
25
     * @return string
26
     */
27
    protected static function getFacadeAccessor()
28
    {
29
        return 'json-response.builder';
30
    }
31
}
32