Term   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 12
ccs 5
cts 5
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A get_term() 0 2 1
1
<?php declare(strict_types = 1);
2
3
namespace WPSteak\Entities;
4
5
abstract class Term implements ITerm {
6
7
	public const TAXONOMY = 'category';
8
9
	protected \WP_Term $term;
10
11 1
	public function __construct( \WP_Term $term ) {
12 1
		$this->term = $term;
13 1
	}
14
15 1
	public function get_term(): \WP_Term {
16 1
		return $this->term;
17
	}
18
19
}
20