More docs
All checks were successful
the build was successful

This commit is contained in:
kolaente 2019-03-01 08:11:33 +01:00
parent f7d79c785c
commit 0f2a9d50a9
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -18,6 +18,7 @@ A service takes (in most cases) a model and returns one.
* [Models](#models)
* [Default Values](#default-values)
* [Constructor](#constructor)
* [Access Model Data](#access-to-the-data)
## Services
@ -168,3 +169,8 @@ or parsing the contents of a child-array into a model.
If the model does nothing like this, you don't need to define a constructor at all.
The parent will handle it all.
#### Access to the data
After initializing a model, it is possible to access all properties via `model.property`.
To make sure the property actually exists, provide it as a default.