Term::get_term()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
ccs 2
cts 2
cp 1
crap 1
rs 10
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