Completed
Pull Request — patch_1-1-4 (#3191)
by Emanuele
11:20
created

PrivacyPolicy   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
/**
4
 * This class takes care of the registration agreement
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
/**
15
 * Class PrivacyPolicy
16
 *
17
 * A simple class to take care of the privacy policy
18
 */
19
class PrivacyPolicy extends Agreement
20
{
21
	/**
22
	 * Everything starts here.
23
	 *
24
	 * @param string $language the wanted language of the agreement.
25
	 * @param string $backup_dir where to store the backup of the privacy policy.
0 ignored issues
show
Documentation introduced by
Should the type for parameter $backup_dir not be string|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
26
	 */
27
	public function __construct($language, $backup_dir = null)
28
	{
29
		$this->_log_table_name = '{db_prefix}log_privacy_policy_accept';
30
		$this->_backupdir_name = 'privacypolicies';
31
		$this->_file_name = 'privacypolicy';
32
33
		parent::__construct($language, $backup_dir);
34
	}
35
}