PHP Class Bravo3\Orm\Tests\Entities\Conditional\Asset

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

Protected Properties

Property Type Description
$category Category
$id integer
$published boolean
$title string

Public Methods

Method Description
getCategory ( ) : Category Get Category
getId ( ) : integer Get Id
getLastModified ( ) : DateTime Get the time the entity was last modified
getPublished ( ) : boolean Get Published
getTimeCreated ( ) : DateTime Get the time the entity was created
getTitle ( ) : string Get Title
isPublished ( ) : boolean
setCategory ( Category $category = null ) Set Category
setId ( integer $id ) Set Id
setLastModified ( DateTime $last_modified ) Set the time the entity was last modified
setPublished ( boolean $published ) Set Published
setTimeCreated ( DateTime $time_created ) Set the time the entity was created
setTitle ( string $title ) Set Title

Method Details

getCategory() public method

Get Category
public getCategory ( ) : Category
return Category

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

getPublished() public method

Get Published
public getPublished ( ) : boolean
return boolean

getTimeCreated() public method

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

getTitle() public method

Get Title
public getTitle ( ) : string
return string

isPublished() public method

public isPublished ( ) : boolean
return boolean

setCategory() public method

Set Category
public setCategory ( Category $category = null )
$category Category

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

setPublished() public method

Set Published
public setPublished ( boolean $published )
$published boolean

setTimeCreated() public method

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

setTitle() public method

Set Title
public setTitle ( string $title )
$title string

Property Details

$category protected property

protected Category,Bravo3\Orm\Tests\Entities\Conditional $category
return Category

$id protected property

protected int $id
return integer

$published protected property

protected bool $published
return boolean

$title protected property

protected string $title
return string