public static function classify($tableName)
{
return static::camelize(static::singularize($tableName));
}
/** * Get the class name for the mock. * * @param string $request * @return string */ protected function _class($request) { $name = $request->action; $type = $request->command; if ($command = $this->_instance($type)) { $request->params['action'] = $name; $name = $command->invokeMethod('_class', array($request)); } return Inflector::classify("Mock{$name}"); }