isa() public method

Value Type Setters.
public isa ( string $type, mixed $option = null )
$type string the value type, valid values are 'number', 'string', 'file', 'boolean', you can also use your own value type name.
$option mixed option(s) for value type class (optionnal)
Esempio n. 1
0
 /**
  * @expectedException Exception
  */
 public function testInvalidTypeClass()
 {
     $opt = new Option('scope');
     $opt->isa('SomethingElse');
     $class = $opt->getTypeClass();
 }