hasData() public method

If $key is empty, checks whether there's any data in the object Otherwise checks if the specified attribute is set.
public hasData ( string $key = '' ) : boolean
$key string Key
return boolean
示例#1
0
 /**
  * Test
  *
  * @return void
  */
 public function testHasFakeData()
 {
     $this->assertFalse($this->object->hasData(''));
 }