1:  2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 
<?php
namespace Omeka\Api\Representation;

use JsonSerializable;
use Zend\EventManager\EventManagerAwareInterface;

/**
 * The representation interface
 *
 * A representation wraps around and provides a standard interface to data. It
 * has two primary functions:
 *
 *   - Serialize into a JSON-LD object
 *   - Pass around internally as a rich, read-only data object
 */
interface RepresentationInterface extends JsonSerializable, EventManagerAwareInterface
{
    /**
     * Serialize the data to a JSON-LD compatible format.
     *
     * @link http://www.w3.org/TR/json-ld/
     * @return array
     */
    public function jsonSerialize();
}