ContentNegotiation::deserializeRequest()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 1
ccs 0
cts 0
cp 0
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