| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 16 | public function find_by_author_id( int $author_id, int $quantity ): Examples { |
||
| 17 | $posts = $this->get_posts( |
||
| 18 | [ |
||
| 19 | 'numberposts' => $quantity, |
||
| 20 | 'author' => $author_id, |
||
| 21 | ], |
||
| 22 | ); |
||
| 23 | |||
| 24 | return new Examples( |
||
| 25 | ...array_map( |
||
| 26 | fn ( \WP_Post $post ) => new Entity( |
||
| 27 | $post, |
||
| 28 | $this->meta->get( (int) $post->ID, 'address', true ), |
||
| 29 | ), |
||
| 30 | $posts, |
||
| 31 | ), |
||
| 36 |