-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from NathMorgan/feature/hyva-support
Hyva Support & Module Rework
- Loading branch information
Showing
32 changed files
with
502 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Tuqiri\GDPR\Api\Data; | ||
|
||
use Magento\Framework\Phrase; | ||
|
||
interface SetRightToForgetMessageInterface | ||
{ | ||
/** | ||
* Get success | ||
* | ||
* @return bool | ||
*/ | ||
public function getSuccess(): bool; | ||
|
||
/** | ||
* Set success | ||
* | ||
* @param bool $success | ||
* @return void | ||
*/ | ||
public function setSuccess(bool $success): void; | ||
|
||
/** | ||
* Set message | ||
* | ||
* @param Phrase $message | ||
* @return void | ||
*/ | ||
public function setMessage(Phrase $message): void; | ||
|
||
/** | ||
* Get message | ||
* | ||
* @return Phrase | ||
*/ | ||
public function getMessage(): Phrase; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Tuqiri\GDPR\Api; | ||
|
||
use Tuqiri\GDPR\Api\Data\SetRightToForgetMessageInterface; | ||
|
||
/** | ||
* Save right to forget | ||
* | ||
* @api | ||
*/ | ||
interface SetRightToForgetInterface | ||
{ | ||
/** | ||
* @param int $customerId | ||
* @return SetRightToForgetMessageInterface | ||
*/ | ||
public function save( | ||
int $customerId | ||
): SetRightToForgetMessageInterface; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Tuqiri\GDPR\Model\Data; | ||
|
||
use Magento\Framework\Phrase; | ||
use Tuqiri\GDPR\Api\Data\SetRightToForgetMessageInterface; | ||
|
||
class SetRightToForgetMessage implements SetRightToForgetMessageInterface | ||
{ | ||
/** @var Phrase */ | ||
private Phrase $message; | ||
|
||
/** @var bool */ | ||
private bool $success; | ||
|
||
/** | ||
* @param Phrase|null $message | ||
* @param bool $success | ||
*/ | ||
public function __construct( | ||
Phrase $message = null, | ||
bool $success = false | ||
) { | ||
$this->message = $message; | ||
$this->success = $success; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function setMessage(Phrase $message): void | ||
{ | ||
$this->message = $message; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getMessage(): Phrase | ||
{ | ||
return $this->message; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function getSuccess(): bool | ||
{ | ||
return $this->success; | ||
} | ||
|
||
/** | ||
* @inheritDoc | ||
*/ | ||
public function setSuccess(bool $success): void | ||
{ | ||
$this->success = $success; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.