apantle/hashmapper

View on GitHub
src/HashmapMapperInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Apantle\HashMapper;

interface HashmapMapperInterface
{
    /**
     * @param mixed $object In its simplest form is an associative array, Hashmap for friends
     * @param mixed $sourceContext the HashMap onto which the map is applied
     * @return mixed
     */
    public function apply($object, $sourceContext = null);

    /**
     * @return HashmapMapperInterface a mapper that applies this same rules to every item passed in an array
     */
    public function getCollectionMapper();
}