Documentation

Molecule extends Atom
in package

Description of Molecule

Tags
author

vitex

Table of Contents

$debug  : bool
Debug mode flag.
$objectName  : string
Object name
__toString()  : string
Magical function for all descendants (childern).
draw()  : string
Default draw method.
getObjectName()  : string
Returns the name of the object.
setObjectName()  : string
Set object name
setupProperty()  : mixed
Set up one of the properties by 1) array 2) ENV 3) Constant

Properties

$debug

Debug mode flag.

public bool $debug = false

$objectName

Object name

public string $objectName = 'Molecule'

Methods

__toString()

Magical function for all descendants (childern).

public __toString() : string
Return values
string

draw()

Default draw method.

public draw() : string
Return values
string

getObjectName()

Returns the name of the object.

public getObjectName() : string
Return values
string

setObjectName()

Set object name

public setObjectName([string $objectName = null ]) : string
Parameters
$objectName : string = null
Return values
string

Object name

setupProperty()

Set up one of the properties by 1) array 2) ENV 3) Constant

public setupProperty(array<string|int, mixed> $options, string $name[, string $constant = '' ]) : mixed
Parameters
$options : array<string|int, mixed>

array of given availble properties

$name : string

name of property to set up

$constant : string = ''

load default property value from constant / ENV

Return values
mixed

Search results