AstroFields/Core

View on GitHub
src/Mediators/EntityInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace WCM\AstroFields\Core\Mediators;

use WCM\AstroFields\Core\Commands\ContextAwareInterface;

interface EntityInterface extends \Traversable, \ArrayAccess
{
    /**
     * @param $proxy
     * @return mixed
     */
    public function setProxy( $proxy );

    /**
     * @param ContextAwareInterface $command
     * @param array            $data
     * @return array
     */
    public function parseContext( ContextAwareInterface $command, Array $data );

    /**
     * @param ContextAwareInterface $command
     * @param array            $data
     */
    public function notify( ContextAwareInterface $command, Array $data = array() );
}