| 1 | <?php declare(strict_types = 1); |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 2 | |||
| 3 | namespace App\Repositories; |
||
| 4 | |||
| 5 | use App\Entities\Page as Entity; |
||
| 6 | use WPSteak\Repositories\AbstractPost; |
||
| 7 | |||
| 8 | class Page extends AbstractPost { |
||
| 9 | |||
| 10 | 1 | public function find_one_by_post( \WP_Post $post ): ?Entity { |
|
| 11 | 1 | return ( new Entity() )->set_post( $post ); |
|
| 12 | } |
||
| 13 | |||
| 14 | } |
||
| 15 |