PHP Interface Newscoop\Service\IEntityBaseService

Show file Open project: sourcefabric/newscoop

Public Methods

Method Description
findById ( mixed $id ) : Newscoop\Entity Provides the entity that has the provided id.
getById ( mixed $id ) : Newscoop\Entity Provides the entity that has the provided id.

Method Details

findById() public method

Provides the entity that has the provided id.
public findById ( mixed $id ) : Newscoop\Entity
$id mixed The id to be searched, not null, not empty.
return Newscoop\Entity The entity, null if no entities could be found for the provided id.

getById() public method

Provides the entity that has the provided id.
public getById ( mixed $id ) : Newscoop\Entity
$id mixed The id to be searched, not null, not empty.
return Newscoop\Entity The entity, not null.