LFT
  • Namespace
  • Class
  • Tree

Namespaces

  • Docoflow
    • Contracts
    • Entity
    • Facades
    • Models
    • Traits
  • Docolight
    • Agno
      • Traits
    • Container
    • Http
      • Contracts
    • Rest
      • Handler
      • Http
    • Support
      • Debug
      • Traits
  • Docotory
    • Traits
  • None

Traits

  • Macroable

Trait Macroable

Direct Known Users

Docolight\Support\Arr, Docolight\Support\Str

Namespace: Docolight\Support\Traits
Located at Docolight/Support/Traits/Macroable.php

Methods summary

public static
# macro( string $name, callable $macro )

Register a custom macro.

Register a custom macro.

Parameters

$name
$macro
public static boolean
# hasMacro( string $name )

Checks if macro is registered.

Checks if macro is registered.

Parameters

$name

Returns

boolean
public static mixed
# __callStatic( string $method, array $parameters )

Dynamically handle calls to the class.

Dynamically handle calls to the class.

Parameters

$method
$parameters

Returns

mixed

Throws

BadMethodCallException
public mixed
# __call( string $method, array $parameters )

Dynamically handle calls to the class.

Dynamically handle calls to the class.

Parameters

$method
$parameters

Returns

mixed

Throws

BadMethodCallException

Properties summary

protected static array $macros

The registered string macros.

The registered string macros.

# []
LFT API documentation generated by ApiGen