Completed
Pull Request — master (#111)
by Luca
02:07
created

PostMetaImporters::details()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace lloc\Msls\ContentImport\Importers;
4
5
use lloc\Msls\ContentImport\Importers\PostMeta\Duplicating;
6
7
class PostMetaImporters extends ImportersBaseFactory {
8
9
	const TYPE = 'post-meta';
10
11
	protected $importers_map = [
12
		Duplicating::TYPE => Duplicating::class,
13
	];
14
15
	/**
16
	 * Returns the factory details.
17
	 *
18
	 * @return string
19
	 */
20
	public function details() {
21
		return (object) [
22
			'slug' => static::TYPE,
23
			'name' => __( 'Meta Fields', 'multisite-language-switcher' ),
24
			'importers' => $this->importers_info(),
25
			'selected'  => $this->selected(),
26
		];
27
	}
28
}
29