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

PrivacyPolicy::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 2
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
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
}