inflate() public static method

public static inflate ( $value, $isa = null )
Example #1
0
 public function inflate($value, $record)
 {
     if ($f = $this->get('inflator')) {
         return call_user_func($f, $value, $record);
     }
     // use global inflator
     return Inflator::inflate($value, $this->isa);
 }
Example #2
0
 /**
  * @dataProvider dateStringProvider
  */
 public function testDateTime($datestr)
 {
     $this->assertInstanceOf('DateTime', Inflator::inflate($datestr, 'DateTime'));
 }