Completed
Pull Request — develop (#1350)
by Naveen
03:09
created

Default_Embedded_Video   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 3
lcom 0
cbo 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A get_api_provider() 0 3 1
A get_url() 0 3 1
1
<?php
2
namespace Wordlift\Videoobject\Data\Embedded_Video;
3
/**
4
 * @since 3.31.0
5
 * @author Naveen Muthusamy <[email protected]>
6
 */
7
8
class Default_Embedded_Video implements Embedded_Video {
9
10
	/**
11
	 * @var string The url of the video which got embedded.
12
	 */
13
	private $video_url;
14
15
	public function __construct( $video_url ) {
16
		$this->video_url = $video_url;
17
	}
18
19
	public function get_api_provider() {
20
		// TODO: Implement get_api_provider() method.
21
	}
22
23
	public function get_url() {
24
		return $this->video_url;
25
	}
26
}