| Total Complexity | 5 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 6 | abstract class Term { |
||
| 7 | |||
| 8 | /** @param \WP_Term|int $term Id. */ |
||
| 9 | protected function get_term( $term ): ?\WP_Term { |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param array<string> $args Args. |
||
| 25 | * @return array<\WP_Term> |
||
| 26 | * @throws \InvalidArgumentException When the passed taxonomy does not exists. |
||
| 27 | */ |
||
| 28 | protected function get_terms( array $args ): array { |
||
| 39 |