public function normalize($word, $to)
    {
        switch ($to) {
            case 'camel':
                return lcfirst($this->camelize($word));
                break;

            case 'snake':
                return $this->underscore($word);
                break;

            case 'dash':
                return $this->dasherize($word);
                break;

            default:
                throw new HTTPException('Invalid nomalization requested', 404, array(
                    'dev' => 'The provided TO field was invalid  It did not match any expected format',
                    'code' => '46546846468464684'
                ));
                break;
        }
    }
public function normalize($word, $to)
    {
        switch ($to) {
            case 'camel':
                return lcfirst($this->camelize($word));
                break;

            case 'snake':
                return $this->underscore($word);
                break;

            case 'dash':
                return $this->dasherize($word);
                break;

            default:
                throw new HTTPException('Invalid nomalization requested', 404, array(
                    'dev' => 'The provided TO field was invalid  It did not match any expected format',
                    'code' => '46546846468464684'
                ));
                break;
        }
    }
public function normalize ( $ word , $ to ) { switch ( $ to ) { case 'camel' : return lcfirst ( $ this -> camelize ( $ word ) ) ; break ; case 'snake' : return $ this -> underscore ( $ word ) ; break ; case 'dash' : return $ this -> dasherize ( $ word ) ; break ; default : throw new HTTPException ( 'Invalid nomalization requested' , 404 , array ( 'dev' => 'The provided TO field was invalid  It did not match any expected format' , 'code' => '46546846468464684' ) ) ; break ; } }
for a given word, convert from one format to another
supported values include camel, dash, snake

@param $word
@param $to

@throws HTTPException
@return mixed
for a given word convert from one format to another supported values include camel dash snake