Completed
Push — patch_1-1-4 ( 9ed69c...90f2a1 )
by Emanuele
18s
created

Weekly_Digest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 14
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 6 1
1
<?php
2
3
/**
4
 * Sends out email notifications for new/updated topics.
5
 *
6
 * @name      ElkArte Forum
7
 * @copyright ElkArte Forum contributors
8
 * @license   BSD http://opensource.org/licenses/BSD-3-Clause
9
 *
10
 * @version 1.1
11
 *
12
 */
13
14
namespace ElkArte\sources\subs\ScheduledTask;
15
16
/**
17
 * Class Weekly_Digest
18
 * Sends out email notifications for new/updated topics.
19
 *
20
 * - Like the daily stuff - just seven times less regular ;)
21
 * - This method forwards to daily_digest()
22
 *
23
 * @package ScheduledTasks
24
 */
25
class Weekly_Digest implements Scheduled_Task_Interface
26
{
27
	/**
28
	 * Sends the weekly digest.
29
	 *
30
	 * @return bool
31
	 */
32 1
	public function run()
33
	{
34 1
		$digest = new Daily_Digest();
35
36 1
		return $digest->runDigest(true);
37
	}
38
}