PHP Class Bravo3\Orm\Tests\Entities\Product

Inheritance: use trait NameTrait
Show file Open project: bravo3/orm Class Usage Examples

Protected Properties

Property Type Description
$active boolean
$create_time DateTime
$description string
$enum Bravo3\Orm\Tests\Resources\Enum
$id integer
$list array
$price float

Public Methods

Method Description
__construct ( )
getActive ( ) : boolean Get Active
getCreateTime ( ) : DateTime Get CreateTime
getDescription ( ) : string Get Description
getEnum ( ) : Enum Get Enum
getId ( ) : integer Get Id
getList ( ) : array Get List
getPrice ( ) : float Get Price
setActive ( boolean $active ) Set Active
setCreateTime ( DateTime $create_time = null ) Set CreateTime
setDescription ( string $description ) Set Description
setEnum ( Enum $enum = null ) Set Enum
setId ( integer $id ) Set Id
setList ( array $list ) Set List
setPrice ( float $price ) Set Price

Method Details

__construct() public method

public __construct ( )

getActive() public method

Get Active
public getActive ( ) : boolean
return boolean

getCreateTime() public method

Get CreateTime
public getCreateTime ( ) : DateTime
return DateTime

getDescription() public method

Get Description
public getDescription ( ) : string
return string

getEnum() public method

Get Enum
public getEnum ( ) : Enum
return Bravo3\Orm\Tests\Resources\Enum

getId() public method

Get Id
public getId ( ) : integer
return integer

getList() public method

Get List
public getList ( ) : array
return array

getPrice() public method

Get Price
public getPrice ( ) : float
return float

setActive() public method

Set Active
public setActive ( boolean $active )
$active boolean

setCreateTime() public method

Set CreateTime
public setCreateTime ( DateTime $create_time = null )
$create_time DateTime

setDescription() public method

Set Description
public setDescription ( string $description )
$description string

setEnum() public method

Set Enum
public setEnum ( Enum $enum = null )
$enum Bravo3\Orm\Tests\Resources\Enum

setId() public method

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

setList() public method

Set List
public setList ( array $list )
$list array

setPrice() public method

Set Price
public setPrice ( float $price )
$price float

Property Details

$active protected property

protected bool $active
return boolean

$create_time protected property

protected DateTime $create_time
return DateTime

$description protected property

protected string $description
return string

$enum protected property

protected Enum,Bravo3\Orm\Tests\Resources $enum
return Bravo3\Orm\Tests\Resources\Enum

$id protected property

protected int $id
return integer

$list protected property

protected array $list
return array

$price protected property

protected float $price
return float