Skip to content

Commit 3923a96

Browse files
committed
Added README
1 parent db1a4d8 commit 3923a96

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)