Completed
Pull Request — develop (#1328)
by Naveen
03:12
created

Entity_Factory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A get_instance() 0 3 1
1
<?php
2
namespace Wordlift\Vocabulary\Data\Entity;
3
/**
4
 * @since 3.30.0
5
 * @author Naveen Muthusamy <[email protected]>
6
 */
7
class Entity_Factory {
8
9
	public static function get_instance( $term_id ) {
10
		return new Default_Entity( $term_id, new Legacy_Entity( $term_id ) );
11
	}
12
13
}