PHP Class Bravo3\Orm\Events\RetrieveEvent

Inheritance: extends EntityEvent
Show file Open project: bravo3/orm

Public Methods

Method Description
__construct ( EntityManager $manager, $class_name, $id, $entity = null )
getClassName ( ) : string Get ClassName
getId ( ) : string Get Id
setEntity ( object $entity ) Set the entity

Method Details

__construct() public method

public __construct ( EntityManager $manager, $class_name, $id, $entity = null )
$manager Bravo3\Orm\Services\EntityManager

getClassName() public method

Get ClassName
public getClassName ( ) : string
return string

getId() public method

Get Id
public getId ( ) : string
return string

setEntity() public method

If the event is aborted, this entity is returned from the retieve call
public setEntity ( object $entity )
$entity object