axy/errors
axy/errors is a PHP 8.1+ helper for defining and organizing exception classes. Provides common exception structures, basic error classes, default messages, backtrace truncation, and global options to standardize error handling across projects.
PropertyReadOnlyclass PropertyReadOnly extends Logic implements ReadOnly
Attempting to write a value in the read-only property.
Unlike ContainerReadOnly other properties may be editable.
$vars->x = 1;
$vars->y = 2;
$vars->z = 3;
echo $vars->count; // 3
$vars->count = 4; // Property vars::count is read-only
Even this property can be editable at other time.
$crawler->url = 'http://example.com';
$crawler->run();
$crawler->url = 'http://newsite.loc'; // too late
__construct([$container, $key [, $previous, $thrower])$container - the container or its name$key - the property keygetContainer():string|objectgetKey():stringHow can I help you explore Laravel packages today?