Test   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 29
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A onTest() 0 6 1
1
<?php
2
3
/**
4
 *
5
 * This file is part of the Apix Project.
6
 *
7
 * (c) Franck Cassedanne <franck at ouarz.net>
8
 *
9
 * @license     http://opensource.org/licenses/BSD-3-Clause  New BSD License
10
 *
11
 */
12
13
namespace Apix\Resource;
14
15
class Test
16
{
17
18
    /**
19
     * HTTP HEAD: test action handler
20
     *
21
     * The HEAD method is identical to GET except that the server MUST NOT return
22
     * a message-body in the response. The metainformation contained in the HTTP
23
     * headers in response to a HEAD request SHOULD be identical to the information
24
     * sent in response to a GET request. This method can be used for obtaining
25
     * metainformation about the entity implied by the request without transferring
26
     * the entity-body itself. This method is often used for testing hypertext links
27
     * for validity, accessibility, and recent modification.
28
     *
29
     * @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.4
30
     *
31
     * @return null
32
     * @cacheable true
33
     * @codeCoverageIgnore
34
     * @apix_man_toc_hidden
35
     */
36
    final public function onTest()
37
    {
38
        // identical to a GET request without the body output.
39
        // shodul proxy to the get method
40
        return array(); // MUST NOT return a message-body in the response
41
    }
42
43
}
44