Completed
Push — add/amp-pwa-experiment ( efea12 )
by
unknown
11:53
created

AMP_Base_Embed_Handler::get_scripts()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
// Used by some children
4
require_once( AMP__ROOT__ . '/includes/utils/class-amp-html-utils.php' );
5
6
abstract class AMP_Base_Embed_Handler {
7
	protected $DEFAULT_WIDTH = 600;
8
	protected $DEFAULT_HEIGHT = 480;
9
10
	protected $args = array();
11
	protected $did_convert_elements = false;
12
13
	abstract function register_embed();
14
	abstract function unregister_embed();
15
16
	function __construct( $args = array() ) {
17
		$this->args = wp_parse_args( $args, array(
18
			'width' => $this->DEFAULT_WIDTH,
19
			'height' => $this->DEFAULT_HEIGHT,
20
		) );
21
	}
22
23
	public function get_scripts() {
24
		return array();
25
	}
26
}
27