BaseStrictClass

A base class that can be extended to protect created objects from access/read to undefined properties, and all other defensive OOP best practices

package

Default

Methods

Protection to prevent accessing undefined properties to this class

__get(string $name): void

Arguments

$name

string

The property name

Protection to prevent creating extra properties to this class

__set(string $name,string $value): void

Arguments

$name

string

The property name

$value

string

The property value