Ntb\RestAPI\IRestSerializer
Provides methods for serializing data.
- Author: Christian Blank <c.blank@notthatbad.net>
Synopsis
interface IRestSerializer
{
- // methods
- public string serialize()
- public string contentType()
- public boolean active()
Methods
public
- active() — Indicates if the serializer is active.
- contentType() — Returns the content type of a serializer. This could be the mime type of json or html for example.
- serialize() — Serialize the data in a specific format like html, json, xml etc.