RobotsTxtAsset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 15
c 1
b 0
f 0
dl 0
loc 23
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
5
use Phpsa\Datastore\Asset;
6
7
class RobotsTxtAsset extends Asset{
8
9
	public $name = 'Robots.txt';
10
	public $shortname = 'robots_txt';
11
	public $max_instances = 1;
12
13
	public $private = true; //this is not a standard public facing page!
14
15
	public $meta_description = 'off'; // set to 'off' to turn it off
16
	public $meta_keywords	 = 'off'; // set to 'off' to turn it off
17
18
	public $value_equals = 'entries';
19
	public $properties = array(
20
		'entries' => array(
21
			'name' => 'Entries',
22
			'type' => self::TEXT,
23
			'required' => false,
24
			'help' => 'setup your robots.txt file here'
25
		)
26
	);
27
28
	public static function about() {
29
		return 'A robots.txt file for use in the site';
30
	}
31
32
}
33