App\Models\Example

Example class

Implements:

Stringable, Basicis\Model\ModelInterface

Extend:

Basicis\Model\Model

Methods

Name Description
getEmail Function getEmail
Get Auth email  
getName Function getName
Get example property name  
setEmail Function setEmail
Set Auth email  
setName Function setName
Set example property name  

Inherited methods

Name Description
__construct Function function
__toArray Function __toArray
Get Entity Data as Array, without the propreties defined in the array property $protecteds  
__toString Function __toString
Get Entity Data as Json, without the propreties defined in the array property $protecteds  
all Function all
Find all entities  
allToArray Function all
Find all entities, and return a array or null  
delete Function delete
Remove data of this entity of database  
exists Function exists
Check if a entity by any column match  
find Function find
Find a entity by id  
findBy Function findBy
Find all entities by any column match  
findOneBy Function findOneBy
Find a entity by any column match  
getCreated Function getCreated
Return entity created timestamp  
getId Function getId
Return entity ID (unique on system identification)  
getManager Function getManager
Get a instance of Doctrine ORM EntityManager an return this, or null  
getPropertyAnnotation Function getPropertyAnnotation
Get a array with property annotations data by prop and tag names, default tag Column  
getProtecteds Function getProtecteds
Get protecteds properties  
getTableName Function getTableName
Get entity table name  
getUpdated Function getUpdated
Return entity updated timestamp  
paginate Function paginate
Paginate entity search with start offset (0) and total, this is ten (10) by default  
query Function query
Execute a sql query string  
removeProtecteds Function removeProtecteds
Get Entity Data as Array, without the propreties defined in the array property $protecteds  
save Function save
Save data of this entity to database, use for create or update entities  
setCreated Function setCreated
Set entity creation timestamp  
setUpdated Function setUpdated
Set entity updated timestamp  

Example::getEmail

Description

public getEmail (void)

Function getEmail Get Auth email

Parameters

This function has no parameters.

Return Values

string|null


Example::getName

Description

public getName (void)

Function getName Get example property name

Parameters

This function has no parameters.

Return Values

string


Example::setEmail

Description

public setEmail (string $email)

Function setEmail Set Auth email

Parameters

Return Values

\Example


Example::setName

Description

public setName (string $name)

Function setName Set example property name

Parameters

Return Values

void