18 lines
303 B
PHP
18 lines
303 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace BitBadger\PDODocument\Mapper;
|
|
|
|
/**
|
|
* A mapper that returns the associative array from the database
|
|
*/
|
|
class ArrayMapper implements Mapper
|
|
{
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function map(array $result): array
|
|
{
|
|
return $result;
|
|
}
|
|
}
|