expirable_items = new Expirable_Items( $user_options ?: new User_Options( $context ) ); $this->rest_controller = new REST_Expirable_Items_Controller( $this->expirable_items ); } /** * Gets the reference to the Expirable_Items instance. * * @since 1.128.0 * * @return Expirable_Items An instance of the Expirable_Items class. */ public function get_expirable_items() { return $this->expirable_items; } /** * Registers functionality through WordPress hooks. * * @since 1.128.0 */ public function register() { $this->expirable_items->register(); $this->rest_controller->register(); } }