We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db1a4d8 commit 3923a96Copy full SHA for 3923a96
1 file changed
README.md
@@ -0,0 +1,22 @@
1
+# Data Object
2
+
3
+This repository just contains a simple base class for PHP data objects.
4
5
+This class throws exceptions if you try to read or write unknown properties,
6
+and ensures a clone is performed recursively.
7
8
+## Usage
9
10
+To use this data object base class for your own data objects, just use
11
+something like this:
12
13
+ class Person extends \Kore\DataObject\DataObject
14
+ {
15
+ public $prename;
16
17
+ public $forename;
18
+ }
19
20
+If you now access unknown properties you will get exceptions. For more details
21
+on the motivation behind this, read:
22
+http://qafoo.com/blog/016_struct_classes_in_php.html
0 commit comments