You are here

public function UnderscoreNamingStrategy::extract 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::extract()

Remove capitalized letters and prepend underscores.

Parameters

string $name:

Return value

string

Overrides NamingStrategyInterface::extract

File

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

Class

UnderscoreNamingStrategy

Namespace

Zend\Hydrator\NamingStrategy

Code

public function extract($name) {
  return $this
    ->getCamelCaseToUnderscoreFilter()
    ->filter($name);
}