TabsAsset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 19
c 1
b 0
f 0
dl 0
loc 32
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A about() 0 2 1
1
<?php
2
3
namespace Phpsa\Datastore\Ams;
4
use Phpsa\Datastore\Asset;
5
6
class TabsAsset extends Asset {
7
8
9
	public $name = 'Tab Page';
10
	public $shortname = 'Tabs';
11
12
	public $children = TabAsset::class;
13
14
15
	// map our value as equal to whatever the title property is set on save.
16
	public $value_equals = 'title';
17
	public $status_equals = 'status';
18
19
	public $properties = array(
20
		'title' => array(
21
			'name' => 'Title',
22
			'type' => self::STRING
23
		),
24
		'content' => array(
25
			'name' => 'Introduction',
26
			'type' => self::HTML
27
		),
28
		'status' => array(
29
            'name' => 'Published',
30
            'type' => self::DROPDOWN,
31
			'options' => ['published' => 'Published', 'unpublished' => 'Unpublished'],
32
			'published' => ['published']
33
        ),
34
	);
35
36
	public static function about() {
37
		return 'This asset is a collection of content items to build tabs / accordions etc.';
38
	}
39
40
}
41