data() public method

Get array of fields and data
public data ( ) : array
return array
Esempio n. 1
0
 public function testOptionalFieldFilter()
 {
     $v = new Validator(array('foo' => 'bar', 'bar' => 'baz'), array('foo'));
     $this->assertEquals($v->data(), array('foo' => 'bar'));
 }