1 | <?php |
||
17 | class EraseAnswers implements PersonalDataEraserInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var EEM_Answer |
||
21 | */ |
||
22 | protected $answer_model; |
||
23 | |||
24 | /** |
||
25 | * @var EEM_Question |
||
26 | */ |
||
27 | protected $question_model; |
||
28 | |||
29 | /** |
||
30 | * EraseAnswers constructor. |
||
31 | * |
||
32 | * @param EEM_Answer $answer_model |
||
33 | * @param EEM_Question $question_model |
||
34 | */ |
||
35 | public function __construct(EEM_Answer $answer_model, EEM_Question $question_model) |
||
40 | |||
41 | |||
42 | /** |
||
43 | * Gets a translated string name for the data eraser |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | public function name() |
||
51 | |||
52 | /** |
||
53 | * Erases a "page" of personal user data |
||
54 | * |
||
55 | * @return array { |
||
56 | * @type boolean $items_removed whether items were removed successfully or not |
||
57 | * @type boolean $items_retained whether any items were skipped or not |
||
58 | * @type array $messages values are messages to show |
||
59 | * @type boolean $done whether this eraser is done or has more pages |
||
60 | * } |
||
61 | */ |
||
62 | public function erase($email_address, $page = 1) |
||
101 | } |
||
102 | // End of file EraseAnswers.php |
||
104 |