lithium\console\command\create\Mock::_class()

protected method

Get the class name for the mock.

Parameters

  • string $request

Returns

string

Source

	protected function _class($request) {
		$type = $request->action;
		$name = $request->args();

		if ($command = $this->_instance($type)) {
			$request->params['action'] = $name;
			$name = $command->invokeMethod('_class', [$request]);
		}
		return "Mock{$name}";
	}