Simple active record implementation
The 'magic' of php-tick happens with annotations.
You define a storage collection like this:
* @collection users
where 'users' is the name of the collection. This would be a table in a sql database.
You define a basic storage property like this:
* @property string firstname first_name
where:
These arguments are required for all properties.
Additionally you can add the following arguments:
Finally you can make php-tick enforce property lenght by postfixing the type with the length:
* @property string(255) $firstname first_name * @property integer(4) $zipcode zip_code