Completed
Pull Request — develop (#1369)
by
unknown
03:28
created

Jsonld_Utils   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A get_matched_entities_for_term() 0 6 1
1
<?php
2
/**
3
 * @since 3.31.2
4
 * @author Naveen Muthusamy <[email protected]>
5
 */
6
7
8
namespace Wordlift\Vocabulary\Jsonld;
9
10
use Wordlift\Vocabulary\Data\Entity_List\Entity_List_Factory;
11
12
13
class Jsonld_Utils {
14
15
	/**
16
	 * @param $term_id
17
	 *
18
	 * @return array|array[]|mixed
19
	 */
20
	public static function get_matched_entities_for_term( $term_id ) {
21
22
		$entity = Entity_List_Factory::get_instance( $term_id );
23
24
		return $entity->get_jsonld_data();
25
	}
26
27
}