Transforms for multiple purposes. (E.g. transports, migrations, …)
namespace Webfan\Transform; interface TransformInterface { const RIGHT = 1; const LEFT = -1; public function detect($payload) : int; public function up($payload); public function down($payload); public function __invoke($payload); }
Examples in the RemoteObjects API:
use Webfan\Transform\Sequence;
use Webfan\Transform\UrlsafeBinaryTransform;
use Webfan\Transform\OpisTranform;
use Webfan\Transform\TransformCallbacks;
Transform in the registry