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

Api_Provider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Wordlift\Videoobject\Provider;
4
5
use Wordlift\Videoobject\Provider\Client\Client;
6
7
/**
8
 * @since 3.31.0
9
 * @author Naveen Muthusamy <[email protected]>
10
 * This acts as abstract class for Providers we get data from using API.
11
 */
12
abstract class Api_Provider implements Provider {
13
14
	/**
15
	 * @var Client
16
	 */
17
	protected $api_client;
18
19
	/**
20
	 * Api_Provider constructor.
21
	 *
22
	 * @param $api_client
23
	 */
24
	public function __construct( $api_client ) {
25
		$this->api_client = $api_client;
26
	}
27
28
}