PHP Class Bravo3\Orm\Tests\Entities\ModifiedEntity

Inheritance: implements Bravo3\Orm\Traits\CreateModifyInterface
Show file Open project: bravo3/orm Class Usage Examples

Protected Properties

Property Type Description
$id integer
$name string

Public Methods

Method 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 method

Get Id
public getId ( ) : integer
return integer

getLastModified() public method

Get the time the entity was last modified
public getLastModified ( ) : DateTime
return DateTime

getName() public method

Get Name
public getName ( ) : string
return string

getTimeCreated() public method

Get the time the entity was created
public getTimeCreated ( ) : DateTime
return DateTime

setId() public method

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

setLastModified() public method

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

setName() public method

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

setTimeCreated() public method

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

Property Details

$id protected property

protected int $id
return integer

$name protected property

protected string $name
return string