@@ -57,7 +57,7 @@ |
||
| 57 | 57 | |
| 58 | 58 | /** |
| 59 | 59 | * @param string[] ...$relation_names any list of relations to return |
| 60 | - * @return instance of Entity object |
|
| 60 | + * @return Entity of Entity object |
|
| 61 | 61 | */ |
| 62 | 62 | public function with(string ...$relation_names) |
| 63 | 63 | { |
@@ -157,6 +157,7 @@ discard block |
||
| 157 | 157 | |
| 158 | 158 | /** |
| 159 | 159 | * @throws InvalidUrl |
| 160 | + * @param string $view |
|
| 160 | 161 | */ |
| 161 | 162 | public function view($view): string |
| 162 | 163 | { |
@@ -203,6 +204,9 @@ discard block |
||
| 203 | 204 | $this->template = "{$template}.{$this->type}"; |
| 204 | 205 | } |
| 205 | 206 | |
| 207 | + /** |
|
| 208 | + * @param string $url |
|
| 209 | + */ |
|
| 206 | 210 | private function templateFromUrl(?string $url = null): string |
| 207 | 211 | { |
| 208 | 212 | $parts = \explode('/', $url); |