parseValue() 공개 메소드

Pass one of the flags {@link STRING}, {@link BOOLEAN}, {@link INTEGER} and {@link FLOAT} to the constructor to configure the result of this method. You can optionally combine the flags with {@link NULLABLE} to support the conversion of "null" to null.
public parseValue ( mixed $value ) : mixed
$value mixed The value to parse.
리턴 mixed The parsed value.
예제 #1
0
 /**
  * @dataProvider getInvalidParseValueTests
  * @expectedException \Webmozart\Console\Api\Args\Format\InvalidValueException
  */
 public function testParseValueFailsIfInvalid($flags, $input)
 {
     $option = new Option('option', 'o', $flags);
     $option->parseValue($input);
 }