Download the PHP package alkaupp/readonly without Composer
On this page you can find all versions of the php package alkaupp/readonly. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download alkaupp/readonly
More information about alkaupp/readonly
Files in alkaupp/readonly
Download alkaupp/readonly
More information about alkaupp/readonly
Files in alkaupp/readonly
Vendor alkaupp
Package readonly
Short Description A trait to provide readonly public properties
License MIT
Package readonly
Short Description A trait to provide readonly public properties
License MIT
Please rate this library. Is it a good library?
Informations about the package readonly
Installation
Introduction
Do you wish to create data objects but don't want to maintain getter methods in your code? It may be reasonable to create those classes with public properties but also restrict write operations to those properties.
This library tries to tackle that problem by offering a Readonly trait that allows you to write your data classes with private properties and still allow you to access them.
The trait prevents reassignments to your private properties. To gain full immutability you'll have to use immutable objects.
All versions of readonly with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
The package alkaupp/readonly contains the following files
Loading the files please wait ....