trait Macroable (View source)

Properties

static protected array $macros

List macro terdaftar.

Methods

static void
macro(string $name, callable $handler)

Tambahkan macro baru.

static void
mixin(callable $mixin, bool $replace = true)

Tambahkan mixin baru.

static bool
has_macro(string $name)

Cek apakah macro sudah terdaftar.

static mixed
__callStatic(string $method, array $parameters)

Invoke static.

mixed
__call(string $method, array $parameters)

Invoke object.

Details

static void macro(string $name, callable $handler)

Tambahkan macro baru.

Parameters

string $name
callable $handler

Return Value

void

static void mixin(callable $mixin, bool $replace = true)

Tambahkan mixin baru.

Parameters

callable $mixin
bool $replace

Return Value

void

static bool has_macro(string $name)

Cek apakah macro sudah terdaftar.

Parameters

string $name

Return Value

bool

static mixed __callStatic(string $method, array $parameters)

Invoke static.

Parameters

string $method
array $parameters

Return Value

mixed

mixed __call(string $method, array $parameters)

Invoke object.

Parameters

string $method
array $parameters

Return Value

mixed