Builder
in package

This is the main builder to dinamically create objects.

Table of Contents

$class  : string
$data  : array<string|int, mixed>
__call() Triggered when invoking "property methods" on the extended builders  : mixed
__construct() Elements constructor.  : mixed
build()  : mixed
getMainClass()  : string
validBuildClass()  : bool

Properties

$data

protected array<string|int, mixed> $data = []

Methods

__call()

Triggered when invoking "property methods" on the extended builders

public __call(string $name, array<string|int, mixed> $varargs) : mixed
Parameters
$name : string

The name of the triggered method.

$varargs : array<string|int, mixed>

The arguments used on the method. Only one per method accepted.

Tags
throws
BuilderException
Return values
mixed

__construct()

Elements constructor.

public __construct(string $class) : mixed
Parameters
$class : string

The class we want to build with this builder.

Tags
throws
BuilderException
Return values
mixed

build()

public abstract build() : mixed
Return values
mixed

getMainClass()

protected abstract getMainClass() : string
Return values
string

validBuildClass()

protected validBuildClass(string $class) : bool
Parameters
$class : string
Return values
bool

Search results