Source of file IRestSerializer.php
Size: 0,808 Bytes - Last Modified: 2021-12-23T10:07:36+00:00
/var/www/docs.ssmods.com/process/src/code/serializers/IRestSerializer.php
123456789101112131415161718192021222324252627282930313233 | <?php namespace Ntb\RestAPI; /** * Provides methods for serializing data. * @author Christian Blank <c.blank@notthatbad.net> */ interface IRestSerializer { /** * Serialize the data in a specific format like html, json, xml etc. * * @param array $data the data that should be serialized * @return string the serialized data */ public function serialize($data); /** * Returns the content type of a serializer. This could be the mime type * of json or html for example. * * @return string */ public function contentType(); /** * Indicates if the serializer is active. * Serializers can be deactivated to use another implementation for the same mime type. * * @return boolean */ public function active(); } |