1. Go to this page and download the library: Download adexos/module-gdpr library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
adexos / module-gdpr example snippets
interface I { public function execute(array $data): array; }
final class A implements I { public function execute(array $data): array { //process $data } }
final class B implements I {
private $a;
public function __construct(A $a) { $this->a = $a; }
public function execute(array $data): array
{
$resultA = $this->a->execute($data);
$resultB = $resultA; // transform $resultA
return $resultB;
}
}