src/value/ValueParser.php
public function parseIntelligent($value) {
    $functions = [
      "parseNumeric",
      "parseBoolean",
      "parseString"
    ];

    foreach ($functions as $function) {
      try {
        return call_user_func([$this, $function], $value);
      } catch (ParseException $e) {
        // empty on purpose
      }
    }

    $exportValue = var_export($value, true);
    throw new ParseException("'$exportValue' could not be parsed by any parser");
  }
public function parseIntelligent($value) {
    $functions = [
      "parseNumeric",
      "parseBoolean",
      "parseString"
    ];

    foreach ($functions as $function) {
      try {
        return call_user_func([$this, $function], $value);
      } catch (ParseException $e) {
        // empty on purpose
      }
    }

    $exportValue = var_export($value, true);
    throw new ParseException("'$exportValue' could not be parsed by any parser");
  }
public function parseIntelligent ( $ value ) { $ functions = [ "parseNumeric" , "parseBoolean" , "parseString" ] ; foreach ( $ functions as $ function ) { try { return call_user_func ( [ $ this , $ function ] , $ value ) ; } catch ( ParseException $ e ) { // empty on purpose } } $ exportValue = var_export ( $ value , true ) ; throw new ParseException ( "'$exportValue' could not be parsed by any parser" ) ; }
Gets a raw value land tries to parse it in several ways. When it found a function that can parse
the given value, it will return immediately instead of trying to parse it with one of the possible
functions left.

@param $value mixed the raw value
@return mixed the parsed value
@throws ParseException if the given value can not be parsed by any pasing function of this class
Gets a raw value land tries to parse it in several ways . When it found a function that can parse the given value it will return immediately instead of trying to parse it with one of the possible functions left .