com\setasign\SetaFramework\Registry

Registry Class Registry

File: /SetaFramework/src/Registry/Registry.php

Class hierarchy

Summary

Properties

$data

protected array<string, mixed> Registry::$data = array()

Variable for the data to hold in the registry


Methods

__construct()

public Registry::__construct (
array<string, mixed> $data = array ( )
)
Parameters
$data : array<string, mixed>
 

__get()

public Registry::__get (
string $name
): mixed

Method to get the hold data from the data array

Parameters
$name : string
 
Exceptions

Throws \InvalidArgumentException if the data is not found or is null

__isset()

public Registry::__isset (
string $name
): bool

Checks whether the entry $name exist

Parameters
$name : string
 

__set()

public Registry::__set (
string $name,
mixed $value
): void

Method to set data to data array

Parameters
$name : string
 
$value : mixed
 

__unset()

public Registry::__unset (
string $name
): void
Parameters
$name : string
 

toArray()

public Registry::toArray (
void
): array

Returns the registry as an associative array