admin-notices-interface.php
4 years ago
base-notice.php
4 years ago
notices-repository.php
4 years ago
with-notices-trait.php
4 years ago
notices-repository.php
34 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Admin\Notices; |
| 5 | |
| 6 | use Jet_Form_Builder\Classes\Repository\Repository_Pattern_Trait; |
| 7 | |
| 8 | class Notices_Repository implements Admin_Notices_Interface { |
| 9 | |
| 10 | use Repository_Pattern_Trait; |
| 11 | |
| 12 | public function rep_instances(): array { |
| 13 | return array(); |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * @return Base_Notice[] |
| 18 | */ |
| 19 | public function get_notices(): array { |
| 20 | return $this->rep_get_items(); |
| 21 | } |
| 22 | |
| 23 | /** |
| 24 | * @param Base_Notice $notice |
| 25 | * |
| 26 | * @return Notices_Repository |
| 27 | */ |
| 28 | public function register_notice( Base_Notice $notice ): Admin_Notices_Interface { |
| 29 | $this->rep_install_item_soft( $notice ); |
| 30 | |
| 31 | return $this; |
| 32 | } |
| 33 | } |
| 34 |