/var/www/html_nl/wp-content/plugins/query-monitor/classes/Output.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php declare(strict_types 1);
/**
 * Abstract output handler.
 *
 * @package query-monitor
 */

if ( ! class_exists'QM_Output' ) ) {
abstract class 
QM_Output {

    
/**
     * Collector instance.
     *
     * @var QM_Collector Collector.
     */
    
protected $collector;

    
/**
     * Timer instance.
     *
     * @var QM_Timer|null Timer.
     */
    
protected $timer;

    public function 
__constructQM_Collector $collector ) {
        
$this->collector $collector;
    }

    
/**
     * @return mixed
     */
    
abstract public function get_output();

    
/**
     * @return void
     */
    
public function output() {
        
// nothing
    
}

    
/**
     * @return QM_Collector
     */
    
public function get_collector() {
        return 
$this->collector;
    }

    
/**
     * @return QM_Timer|null
     */
    
final public function get_timer() {
        return 
$this->timer;
    }

    
/**
     * @param QM_Timer $timer
     * @return void
     */
    
final public function set_timerQM_Timer $timer ) {
        
$this->timer $timer;
    }

}
}