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

PostThumbnailImporters   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A details() 0 8 1
1
<?php
2
3
namespace lloc\Msls\ContentImport\Importers;
4
5
use lloc\Msls\ContentImport\Importers\PostThumbnail\Linking;
6
7
class PostThumbnailImporters extends ImportersBaseFactory {
8
9
	const TYPE = 'post-thumbnail';
10
11
	protected $importers_map = [
12
		Linking::TYPE => Linking::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' => __( 'Featured Image', 'multisite-language-switcher' ),
24
			'importers' => $this->importers_info(),
25
			'selected'  => $this->selected(),
26
		];
27
	}
28
}
29