X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fseekat;a=blobdiff_plain;f=lib%2FAPI%2FContentType%2FHandler.php;fp=lib%2FAPI%2FContentType%2FHandler.php;h=7aa1043db4d9ab0f2fcfbb3dde0c354810397db5;hp=d6cd7c69dd8cddab8e419378a663e61b5227008d;hb=654d736df2c46ec2520f73e9089d06a44f2b9c50;hpb=2121556150be871684b5046af7cf250b8219128d diff --git a/lib/API/ContentType/Handler.php b/lib/API/ContentType/Handler.php index d6cd7c6..7aa1043 100644 --- a/lib/API/ContentType/Handler.php +++ b/lib/API/ContentType/Handler.php @@ -7,21 +7,17 @@ use http\Message\Body; interface Handler { /** * List handled types - * @return array + * @return string[] */ function types() : array; /** * Decode HTTP message body - * @param Body $body - * @return mixed */ - function decode(Body $body); + function decode(Body $body) : mixed; /** * Encode HTTP message body - * @param $data - * @return Body */ - function encode($data) : Body; + function encode(mixed $data) : Body; }