setData() public méthode

Sets the callback content data.
public setData ( mixed $data )
$data mixed Data that will be set into output 'data' field.
 public function testGetErrorFalse()
 {
     $obj = new \stdClass();
     $obj->title = 'Rock star';
     $cr = new CallbackResult();
     $cr->setData($obj);
     $this->assertFalse($cr->getError());
 }