Registry / utility / kdyby-strict-objects

kdyby-strict-objects

JSON →
library2.0.1phppackagistunverified

Simple trait to make your class strict, when calling or accessing undefined member (property or method).

composer require kdyby/strict-objects
INSTALL
IMPORT
SIG · KDYBY-STRICT-OBJEC
K
kdyby-strict-objects
utilityphpv2.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

StrictObject
use Kdyby\StrictObjects\StrictObject;

Use the StrictObject trait to enforce strict member access

use Kdyby\StrictObjects\StrictObject; class MyClass { use StrictObject; } $obj = new MyClass(); $obj->undefinedProperty; // Throws an error
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
kdyby-strict-objects — pip install kdyby-strict-objects · libregistry