| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
namespace JFB_Components\Admin\Vui_Boxes; |
| 5 |
|
| 6 |
use JFB_Components\Repository\Repository_Pattern_Trait; |
| 7 |
|
| 8 |
// If this file is called directly, abort. |
| 9 |
if ( ! defined( 'WPINC' ) ) { |
| 10 |
die; |
| 11 |
} |
| 12 |
|
| 13 |
class Boxes_Repository { |
| 14 |
|
| 15 |
use Repository_Pattern_Trait; |
| 16 |
|
| 17 |
public function rep_instances(): array { |
| 18 |
return array(); |
| 19 |
} |
| 20 |
|
| 21 |
/** |
| 22 |
* @return Base_Vui_Box[] |
| 23 |
*/ |
| 24 |
public function get_boxes(): array { |
| 25 |
return $this->rep_get_items(); |
| 26 |
} |
| 27 |
|
| 28 |
/** |
| 29 |
* @param Base_Vui_Box $box |
| 30 |
* |
| 31 |
* @return Boxes_Repository |
| 32 |
*/ |
| 33 |
public function register_box( Base_Vui_Box $box ): Boxes_Repository { |
| 34 |
$this->rep_install_item_soft( $box ); |
| 35 |
|
| 36 |
return $this; |
| 37 |
} |
| 38 |
} |
| 39 |
|