@@ -64,7 +64,7 @@ Array (
64
64
)
65
65
```
66
66
67
- ** Find one item by criteria.** This method my return ` null ` .
67
+ ** Find one item by criteria.** This method may return ` null ` .
68
68
69
69
``` php
70
70
$repo->findOneBy([
@@ -132,13 +132,13 @@ $persistence = new Persistence\YamlFilePersistence('path/to/yaml');
132
132
133
133
### Methods API
134
134
135
- | Method | Parameters | Return | Description |
136
- | ------- | --------------- | ------------ | ------------- |
137
- | create | ` array ` data | `string| int` | New ID |
138
- | read | `string| int` id | ` array ` | The record |
139
- | readAll | | array | All records |
140
- | update | ` array ` data | ` int ` | Affected rows |
141
- | delete | `string| int` | ` int ` | Affected rows |
135
+ | Method | Parameters | Return | Description |
136
+ | ------- | ---------------- | - ------------ | ------------- |
137
+ | create | ` array ` data | ` string¦ int ` | New ID |
138
+ | read | ` string¦ int ` id | ` array ` | The record |
139
+ | readAll | | array | All records |
140
+ | update | ` array ` data | ` int ` | Affected rows |
141
+ | delete | ` string¦ int ` | ` int ` | Affected rows |
142
142
143
143
### Special implementations
144
144
@@ -199,12 +199,12 @@ $repository = new Repository($persistence)
199
199
200
200
| Method | Required Parameters | Optional | Return | Description |
201
201
| --------- | --------------------- | -------------------------------------------------------- | ------------------- | ------------ |
202
- | get | `string| id ` id | | `array| object` | The record |
203
- | findOneBy | ` array ` criteria | | `array| object| null` | One record |
202
+ | get | ` string¦int ` id | | ` array¦ object ` | The record |
203
+ | findOneBy | ` array ` criteria | | ` array¦ object¦ null ` | One record |
204
204
| findAll | | | ` iterable ` | All records |
205
205
| findBy | ` array ` criteria | ` ?array ` orderBy,<br /> ` ?int ` limit<br /> ` ?int ` offset | ` iterable ` | Some records |
206
- | save | `array| object` entity | | ` bool ` | |
207
- | delete | `array| object` entity | | ` bool ` | |
206
+ | save | ` array¦ object ` entity | | ` bool ` | |
207
+ | delete | ` array¦ object ` entity | | ` bool ` | |
208
208
209
209
---
210
210
0 commit comments