Documentation

AbstractApplication
in package
implements ApplicationInterface

AbstractYes

Abstract application class

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
5.0.0

Table of Contents

Interfaces

ApplicationInterface
Application interface

Properties

$config  : mixed
Application config
$fullName  : string|null
Full Name (Human-readable, e.g., "My Application")
$name  : string|null
Name (Slug, e.g. "my-app")
$version  : string|null
Version

Methods

addConfigValue()  : AbstractApplication
Add new value to config
config()  : mixed
Access application config
deleteConfigValue()  : AbstractApplication
Replace existing value in config
getFullName()  : string
Get full name
getName()  : string
Get name
getVersion()  : string
Get version
hasFullName()  : bool
Determine if the full name is set
hasName()  : bool
Determine if the name is set
hasVersion()  : bool
Determine if version has been set
load()  : AbstractApplication
Optional method that can be used to load custom operations/configurations for an application to run
mergeConfig()  : AbstractApplication
Merge new or altered config values with the existing config values
registerConfig()  : AbstractApplication
Register a new configuration with the application
setFullName()  : static
Set full name
setName()  : static
Set name
setVersion()  : static
Set version
updateConfigValue()  : AbstractApplication
Update existing value in config

Properties

$fullName

Full Name (Human-readable, e.g., "My Application")

protected string|null $fullName = null

Methods

hasFullName()

Determine if the full name is set

public hasFullName() : bool
Return values
bool

hasVersion()

Determine if version has been set

public hasVersion() : bool
Return values
bool

mergeConfig()

Merge new or altered config values with the existing config values

public mergeConfig(mixed $config[, bool $preserve = false ][, array<string|int, mixed> $exclude = [] ]) : AbstractApplication
Parameters
$config : mixed
$preserve : bool = false
$exclude : array<string|int, mixed> = []
Tags
throws
Exception
Return values
AbstractApplication

setFullName()

Set full name

public setFullName(string $fullName) : static
Parameters
$fullName : string
Return values
static

setName()

Set name

public setName(string $name) : static
Parameters
$name : string
Return values
static

setVersion()

Set version

public setVersion(string $version) : static
Parameters
$version : string
Return values
static

        
On this page

Search results