You are here

public function UnderscoreNamingStrategy::hydrate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-hydrator/src/NamingStrategy/UnderscoreNamingStrategy.php \Zend\Hydrator\NamingStrategy\UnderscoreNamingStrategy::hydrate()

Remove underscores and capitalize letters

Parameters

string $name:

Return value

string

Overrides NamingStrategyInterface::hydrate

File

vendor/zendframework/zend-hydrator/src/NamingStrategy/UnderscoreNamingStrategy.php, line 32

Class

UnderscoreNamingStrategy

Namespace

Zend\Hydrator\NamingStrategy

Code

public function hydrate($name) {
  return $this
    ->getUnderscoreToStudlyCaseFilter()
    ->filter($name);
}