Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types = 1); |
||
10 | class Example extends AbstractPost { |
||
11 | |||
12 | public function find_one_by_post( \WP_Post $post ): ?Entity { |
||
13 | return new Entity( $post, $this->meta->get( (int) $post->ID, 'address', true ) ); |
||
14 | } |
||
15 | |||
16 | public function find_by_author_id( int $author_id, int $quantity ): Examples { |
||
31 | ), |
||
32 | ); |
||
36 |