group_removed   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 1
Metric Value
eloc 4
dl 0
loc 24
rs 10
c 3
b 0
f 1
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A get_title() 0 3 1
A get_url() 0 3 1
A get_type() 0 3 1
1
<?php
2
/**
3
*
4
* Auto Groups extension for the phpBB Forum Software package.
5
*
6
* @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
7
* @license GNU General Public License, version 2 (GPL-2.0)
8
*
9
*/
10
11
namespace phpbb\autogroups\notification\type;
12
13
class group_removed extends \phpbb\autogroups\notification\type\group_added
14
{
15
	/**
16
	 * {@inheritdoc}
17
	 */
18
	public function get_type()
19
	{
20
		return 'phpbb.autogroups.notification.type.group_removed';
21
	}
22
23
	/**
24
	 * {@inheritdoc}
25
	 */
26
	public function get_title()
27
	{
28
		return $this->language->lang('AUTOGROUPS_NOTIFICATION_GROUP_REMOVED', $this->get_data('group_name'));
29
	}
30
31
	/**
32
	 * {@inheritdoc}
33
	 */
34
	public function get_url()
35
	{
36
		return '';
37
	}
38
}
39