Completed
Branch master (232147)
by
unknown
03:33
created

TestDummy::adminPanelNotification()   A

Complexity

Conditions 1
Paths 1

Duplication

Lines 0
Ratio 0 %

Size

Total Lines 5
Code Lines 3

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
namespace Redaxscript\Modules\TestDummy;
3
4
use Redaxscript\Module;
5
6
/**
7
 * made for testing
8
 *
9
 * @since 2.6.0
10
 *
11
 * @package Redaxscript
12
 * @category Modules
13
 * @author Henry Ruhs
14
 */
15
16
class TestDummy extends Module
17
{
18
	/**
19
	 * array of the module
20
	 *
21
	 * @var array
22
	 */
23
24
	protected static $_moduleArray =
25
	[
26
		'name' => 'Test dummy',
27
		'alias' => 'TestDummy',
28
		'author' => 'Redaxmedia',
29
		'description' => 'Made for testing',
30
		'version' => '3.0.0'
31
	];
32
33
	/**
34
	 * adminPanelNotification
35
	 *
36
	 * @since 3.0.0
37
	 *
38
	 * @return array
39
	 */
40
41
	public static function adminPanelNotification()
42
	{
43
		self::setNotification('info', 'test');
44
		return self::getNotification();
45
	}
46
47
	/**
48
	 * render
49
	 *
50
	 * @since 2.4.0
51
	 *
52
	 * @param integer $firstNumber
53
	 * @param integer $secondNumber
54
	 *
55
	 * @return integer
56
	 */
57
58
	public static function render($firstNumber = null, $secondNumber = null)
59
	{
60
		return $firstNumber + $secondNumber;
61
	}
62
}
63