PHP Class Sokil\Mongo\Event

Inheritance: extends Symfony\Component\EventDispatcher\Event
Show file Open project: sokil/php-mongo Class Usage Examples

Public Methods

Method Description
cancel ( ) Cancel related operation execution. If called as beforeInsert handler, than insert will be cancelled.
getTarget ( ) : mixed Get target object, on which event is fired
isCancelled ( ) Check if operation execution cancelled
setTarget ( mixed $target ) : Event Set target object, on which event is fired

Method Details

cancel() public method

Cancel related operation execution. If called as beforeInsert handler, than insert will be cancelled.
public cancel ( )

getTarget() public method

Get target object, on which event is fired
public getTarget ( ) : mixed
return mixed

isCancelled() public method

Check if operation execution cancelled
public isCancelled ( )

setTarget() public method

Set target object, on which event is fired
public setTarget ( mixed $target ) : Event
$target mixed
return Event