PHP Class Bravo3\Orm\Tests\Entities\ModifiedEntity

Inheritance: implements Bravo3\Orm\Traits\CreateModifyInterface
Afficher le fichier Open project: bravo3/orm Class Usage Examples

Protected Properties

Свойство Type Description
$id integer
$name string

Méthodes publiques

Méthode Description
getId ( ) : integer Get Id
getLastModified ( ) : DateTime Get the time the entity was last modified
getName ( ) : string Get Name
getTimeCreated ( ) : DateTime Get the time the entity was created
setId ( integer $id ) Set Id
setLastModified ( DateTime $last_modified ) Set the time the entity was last modified
setName ( string $name ) Set Name
setTimeCreated ( DateTime $time_created ) Set the time the entity was created

Method Details

getId() public méthode

Get Id
public getId ( ) : integer
Résultat integer

getLastModified() public méthode

Get the time the entity was last modified
public getLastModified ( ) : DateTime
Résultat DateTime

getName() public méthode

Get Name
public getName ( ) : string
Résultat string

getTimeCreated() public méthode

Get the time the entity was created
public getTimeCreated ( ) : DateTime
Résultat DateTime

setId() public méthode

Set Id
public setId ( integer $id )
$id integer

setLastModified() public méthode

Set the time the entity was last modified
public setLastModified ( DateTime $last_modified )
$last_modified DateTime

setName() public méthode

Set Name
public setName ( string $name )
$name string

setTimeCreated() public méthode

Set the time the entity was created
public setTimeCreated ( DateTime $time_created )
$time_created DateTime

Property Details

$id protected_oe property

protected int $id
Résultat integer

$name protected_oe property

protected string $name
Résultat string