AppHelpersTrait
Table of Contents
Properties
Methods
- appName() : string
- Our application name
- environment() : string
- isConsoleApp() : bool
- isDebug() : mixed
- isDevelopment() : bool
- isLinux() : bool
- isMac() : bool
- isProduction() : bool
- isRestApp() : bool
- isTesting() : bool
- isWindows() : bool
- os() : string
- setAppName() : void
- Change the core app name
- version() : string
Properties
$APP_NAME
private
string
$APP_NAME
= 'Pionia'
$version
private
string
$version
= '2.0.0'
Methods
appName()
Our application name
public
appName() : string
Return values
stringenvironment()
public
environment() : string
Return values
stringisConsoleApp()
public
isConsoleApp() : bool
Return values
boolisDebug()
public
isDebug() : mixed
isDevelopment()
public
isDevelopment() : bool
Return values
bool —If we are in development mode
isLinux()
public
isLinux() : bool
Return values
boolisMac()
public
isMac() : bool
Return values
boolisProduction()
public
isProduction() : bool
Return values
boolisRestApp()
public
isRestApp() : bool
Return values
boolisTesting()
public
isTesting() : bool
Return values
boolisWindows()
public
isWindows() : bool
Return values
boolos()
public
os() : string
Return values
stringsetAppName()
Change the core app name
public
setAppName( $name) : void
Parameters
version()
public
version() : string
Return values
string —The version of the application