TabAsset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 16
c 1
b 0
f 1
dl 0
loc 24
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 TabAsset extends Asset {
7
8
	public $name = 'Tab Content';
9
	public $shortname = 'Tab';
10
	public $is_child = true;
11
12
	public $value_equals = 'title';
13
14
	public $properties = array(
15
		'title' => array(
16
			'name' => 'Tab Title',
17
			'type' => self::STRING,
18
			'help' => 'Title of your article',
19
			'required' => true,
20
			'validation_messages' => 'A Title Is required'
21
		),
22
		'content' => array(
23
			'name' => 'Tab Content',
24
			'type' => self::HTML
25
		),
26
	);
27
28
	public static function about() {
29
		return 'A basic tab asset, allows for a tab title & content';
30
	}
31
32
}
33