Quittio 0.3 API

Macroable

Lightweight macro support without a dependency on Laravel.

Country packs use it to add helpers such as smallAmount() to the invoice builder.

Table of Contents

Properties

$macros  : array<string, callable>

Methods

__call()  : mixed
flushMacros()  : void
hasMacro()  : bool
macro()  : void

Properties

$macros

protected static array<string, callable> $macros = []

Methods

__call()

public __call(string $method, array<string|int, mixed> $parameters) : mixed
Parameters
$method : string
$parameters : array<string|int, mixed>

flushMacros()

public static flushMacros() : void

hasMacro()

public static hasMacro(string $name) : bool
Parameters
$name : string
Return values
bool

macro()

public static macro(string $name, callable $macro) : void
Parameters
$name : string
$macro : callable
Tags
param-closure-this

static $macro

On this page

Search results