zendframework/zf2 — pull request #6197 by ojhaujjwal (2014-04-26 04:37:58+00:00)
Title: Added array map naming strategy

```php
class User
{
protected $name;

public function setName($name)
{
$this->name = $name;
}

public function getName()
{
return $this->name;
}
}
$hydrator = new Zend\Stdlib\Hydrator\ClassMethods;
$strategy = new Zend\Stdlib\Hydrator\NamingStrategy\ArrayMapNamingStrategy(array('name' => 'real_name'));
$hydrator->setNamingStrategy($strategy);
$user = new User();
$user->setName('Brad');

echo $hydrate->extract($user)['real_name']; // outputs Brad
```