Helper
Less than 1 minute
Helper
- Full name:
\Hazaar\Controller\Helper
- This class is an Abstract class
Properties
controller
protected ?\Hazaar\Controller $controller
args
protected array $args
Methods
__construct
final public __construct(?\Hazaar\Controller $controller = null, array $args = []): mixed
- This method is final.
Parameters:
Parameter | Type | Description |
---|---|---|
$controller | ?\Hazaar\Controller | |
$args | array |
getName
Retrieves the name of the current class without the namespace.
public getName(): string
This method uses the get_class
function to get the fully qualified class name of the current object, and then extracts the class name by removing the namespace part.
Return Value:
the name of the current class without the namespace
import
public import(array $args = []): void
Parameters:
Parameter | Type | Description |
---|---|---|
$args | array |
Automatically generated on 2024-11-14