/
LawfulBasisForProcessing.php
61 lines (49 loc) · 1.69 KB
/
LawfulBasisForProcessing.php
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
declare(strict_types = 1);
namespace SmartEmailing\Types;
use SmartEmailing\Types\ExtractableTraits\EnumExtractableTrait;
/**
* Class LawfulBasisForProcessing
*
* @package SmartEmailing\Types
* @see https://ico.org.uk/for-organisations/guide-to-the-general-data-protection-regulation-gdpr/lawful-basis-for-processing/
*/
final class LawfulBasisForProcessing extends Enum
{
use EnumExtractableTrait;
/**
* The individual has given clear consent for you
* to process their personal data for a specific purpose.
*/
public const CONSENT = 'consent';
/**
* The processing is necessary for a contract you have
* with the individual, or because they have asked you
* to take specific steps before entering into a contract.
*/
public const CONTRACT = 'contract';
/**
* The processing is necessary for you to comply
* with the law (not including contractual obligations).
*/
public const LEGAL_OBLIGATION = 'legal-obligation';
/**
* The processing is necessary for your legitimate interests
* or the legitimate interests of a third party unless
* there is a good reason to protect the individual’s personal
* data which overrides those legitimate interests.
* (This cannot apply if you are a public authority processing
* data to perform your official tasks.)
*/
public const LEGITIMATE_INTEREST = 'legitimate-interest';
/**
* The processing is necessary to protect someone’s life.
*/
public const VITAL_INTEREST = 'vital-interest';
/**
* The processing is necessary for you to perform a task
* in the public interest or for your official functions,
* and the task or function has a clear basis in law.
*/
public const PUBLIC_TASK = 'public-task';
}