Completed
Pull Request — master (#130)
by Jakub
16:49
created

hidden   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 18
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get_id() 0 4 1
A get_category() 0 4 1
1
<?php
2
/**
3
 *
4
 * Advertisement management. An extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2017 phpBB Limited <https://www.phpbb.com>
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace phpbb\ads\location\type;
12
13
class hidden extends base
14
{
15
	/**
16
	 * {@inheritDoc}
17
	 */
18 5
	public function get_id()
19
	{
20 5
		return 'hidden';
21
	}
22
23
	/**
24
	 * {@inheritDoc}
25
	 */
26 5
	public function get_category()
27
	{
28 5
		return self::CAT_SPECIAL;
29
	}
30
}
31