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

Entity_Factory::get_instance()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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
}