InternalOptions.php
1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
namespace AIOSEO\Plugin\Lite\Options;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
use AIOSEO\Plugin\Common\Options as CommonOptions;
use AIOSEO\Plugin\Lite\Traits;
/**
* Class that holds all internal options for AIOSEO.
*
* @since 4.0.0
*/
class InternalOptions extends CommonOptions\InternalOptions {
use Traits\Options;
/**
* Defaults options for Lite.
*
* @since 4.0.0
*
* @var array
*/
private $liteDefaults = [
// phpcs:disable WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound
'internal' => [
'activated' => [ 'type' => 'number', 'default' => 0 ],
'firstActivated' => [ 'type' => 'number', 'default' => 0 ],
'installed' => [ 'type' => 'number', 'default' => 0 ],
'connect' => [
'key' => [ 'type' => 'string' ],
'time' => [ 'type' => 'number', 'default' => 0 ],
'network' => [ 'type' => 'boolean', 'default' => false ],
'token' => [ 'type' => 'string' ]
]
]
// phpcs:enable WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound
];
}