Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
FontManager
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 initialize_settings
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace NewfoldLabs\WP\Module\Performance\Fonts;
4
5use NewfoldLabs\WP\ModuleLoader\Container;
6use NewfoldLabs\WP\Module\Performance\Fonts\FontSettings;
7
8/**
9 * Manages the initialization of font optimization settings and listeners.
10 */
11class FontManager {
12
13    /**
14     * Constructor to initialize the FontManager.
15     *
16     * Registers settings and conditionally initializes related services.
17     *
18     * @param Container $container Dependency injection container.
19     */
20    public function __construct( Container $container ) {
21        $this->initialize_settings( $container );
22    }
23
24    /**
25     * Initializes the FontSettings class to register settings.
26     *
27     * @param Container $container Dependency injection container.
28     */
29    private function initialize_settings( Container $container ) {
30        new FontSettings( $container );
31    }
32}