You are here

public function WebformAnalysis::castNumeric in Webform Analysis 8

Cast Numeric.

Parameters

string $i: String Number.

Return value

string Cast Numeric.

Overrides WebformAnalysisInterface::castNumeric

1 call to WebformAnalysis::castNumeric()
WebformAnalysis::getComponentValuesCount in src/WebformAnalysis.php
Get Component Values Count.

File

src/WebformAnalysis.php, line 183

Class

WebformAnalysis
WebformAnalysis.

Namespace

Drupal\webform_analysis

Code

public function castNumeric($i = '') {
  return $this
    ->isInt($i) ? (int) $i : (double) $i;
}