ArchiveMetaManager   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getDefaultGroup() 0 3 1
1
<?php
2
3
namespace GeminiLabs\Pollux\MetaBox;
4
5
use GeminiLabs\Pollux\MetaBox\SiteMetaManager;
6
use GeminiLabs\Pollux\PostType\Archive;
7
8
/**
9
 * ArchiveMeta::all();
10
 * ArchiveMeta::group();
11
 * ArchiveMeta::group('option','fallback');
12
 * ArchiveMeta::get('group');
13
 * ArchiveMeta::get('group','option','fallback');
14
 */
15
class ArchiveMetaManager extends SiteMetaManager
16
{
17
	public function __construct()
18
	{
19
		$this->options = get_option( Archive::id(), [] );
20
	}
21
22
	/**
23
	 * @return string
24
	 */
25
	protected function getDefaultGroup()
26
	{
27
		return get_post_type();
28
	}
29
}
30