for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Stratadox\Hydrator;
/**
* Hydrates an array. Since the input is already array, do nothing, really.
*
* @package Stratadox\Hydrate
* @author Stratadox
*/
final class ArrayHydrator implements Hydrates
{
* Creates a new array hydrator.
* @return Hydrates
public static function create(): Hydrates
return new self;
}
/** @inheritdoc */
public function fromArray(array $input)
return $input;
public function classFor(array $input): string
return 'array';