ContentNegotiation
last analyzed

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 12
ccs 0
cts 0
cp 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
createResponse() 0 1 ?
deserializeRequest() 0 1 ?
1
<?php
2
3
namespace JDesrosiers\Silex\Provider\ContentNegotiation;
4
5
/**
6
 * This interface defines helper methods for automatically serializing responses and deserializing requests.
7
 */
8
interface ContentNegotiation
9
{
10
    /**
11
     * Serialize the response in an acceptable format.
12
     */
13
    function createResponse($responseObject, $status = 200, array $headers = array());
14
15
    /**
16
     * Deserialize the request body.
17
     */
18
    function deserializeRequest($class);
19
}
20