first
This commit is contained in:
25
wp-content/plugins/query-monitor/classes/DataCollector.php
Normal file
25
wp-content/plugins/query-monitor/classes/DataCollector.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php declare(strict_types = 1);
|
||||
/**
|
||||
* Abstract data collector for structured data.
|
||||
*
|
||||
* @package query-monitor
|
||||
*/
|
||||
|
||||
/**
|
||||
* @phpstan-template T of QM_Data
|
||||
*/
|
||||
abstract class QM_DataCollector extends QM_Collector {
|
||||
/**
|
||||
* @var QM_Data
|
||||
* @phpstan-var T
|
||||
*/
|
||||
protected $data;
|
||||
|
||||
/**
|
||||
* @return QM_Data
|
||||
* @phpstan-return T
|
||||
*/
|
||||
final public function get_data() {
|
||||
return $this->data;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user