for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Thruster\Component\DataMapper;
/**
* Class BaseDataMapper
*
* @package Thruster\Component\DataMapper
* @author Aurimas Niekis <[email protected]>
*/
abstract class BaseDataMapper implements DataMapperInterface
{
* @var DataMappers
protected $dataMappers;
* @inheritDoc
public function setDataMappers(DataMappers $dataMappers)
$this->dataMappers = $dataMappers;
return $this;
}
public function getMapper(string $name) : DataMapper
return $this->dataMappers->getMapper($name);
public function supports($input) : bool
return true;