helloworld   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getAll() 0 6 1
1
<?php
2
namespace HelloWorld\Endpoints\v1_0;
3
4
use LunixREST\Server\APIRequest\APIRequest;
5
use LunixREST\Server\APIResponse\APIResponseData;
6
use LunixREST\Server\Router\Endpoint\DefaultEndpoint;
7
use LunixREST\Server\Router\Endpoint\Exceptions\EndpointExecutionException;
8
use LunixREST\Server\Router\Endpoint\Exceptions\InvalidRequestException;
9
use LunixREST\Server\Router\Endpoint\Exceptions\UnsupportedMethodException;
10
11
class helloworld extends DefaultEndpoint
12
{
13
14
    /**
15
     * @param APIRequest $request
16
     * @return APIResponseData
17
     * @throws EndpointExecutionException
18
     * @throws UnsupportedMethodException
19
     * @throws InvalidRequestException
20
     */
21
    public function getAll(APIRequest $request): APIResponseData
22
    {
23
        return new APIResponseData([
24
            "helloworld" => "HelloWorld"
25
        ]);
26
    }
27
}
28