PHP Trait Bolt\Storage\CaseTransformTrait

Datei anzeigen Open project: bolt/bolt

Public Methods

Method Description
camelize ( string $id ) : string Converts a string from underscored to Camel Case.
underscore ( string $id ) : string Converts a string from camel case to underscored.

Method Details

camelize() public method

Converts a string from underscored to Camel Case.
public camelize ( string $id ) : string
$id string A string to camelize
return string The camelized string

underscore() public method

Converts a string from camel case to underscored.
public underscore ( string $id ) : string
$id string The string to underscore
return string The underscored string