WpListTableFactory.php
20 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AC\Table\ManageHeading; |
| 6 | |
| 7 | use AC\TableScreen; |
| 8 | |
| 9 | class WpListTableFactory extends ScreenColumnsFactory |
| 10 | { |
| 11 | public function can_create(TableScreen $table_screen): bool |
| 12 | { |
| 13 | return $table_screen instanceof TableScreen\Post || |
| 14 | $table_screen instanceof TableScreen\User || |
| 15 | $table_screen instanceof TableScreen\Comment || |
| 16 | $table_screen instanceof TableScreen\Media; |
| 17 | } |
| 18 | |
| 19 | } |
| 20 |