repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
wamania/php-stemmer | https://github.com/wamania/php-stemmer/blob/cffeb3abca5cd817acc040c8b569a49b8a1d7353/test/ItalianTest.php | test/ItalianTest.php | <?php
namespace Wamania\Snowball\Tests;
use PHPUnit\Framework\TestCase;
use Wamania\Snowball\Stemmer\Italian;
class ItalianTest extends TestCase
{
/**
* @dataProvider load
*/
public function testStem($word, $stem)
{
$o = new Italian();
$snowballStem = $o->stem($word);
$... | php | MIT | cffeb3abca5cd817acc040c8b569a49b8a1d7353 | 2026-01-05T04:34:49.030441Z | false |
wamania/php-stemmer | https://github.com/wamania/php-stemmer/blob/cffeb3abca5cd817acc040c8b569a49b8a1d7353/test/SwedishTest.php | test/SwedishTest.php | <?php
namespace Wamania\Snowball\Tests;
use PHPUnit\Framework\TestCase;
use Wamania\Snowball\Stemmer\Swedish;
class SwedishTest extends TestCase
{
/**
* @dataProvider load
*/
public function testStem($word, $stem)
{
$o = new Swedish();
$snowballStem = $o->stem($word);
$... | php | MIT | cffeb3abca5cd817acc040c8b569a49b8a1d7353 | 2026-01-05T04:34:49.030441Z | false |
wamania/php-stemmer | https://github.com/wamania/php-stemmer/blob/cffeb3abca5cd817acc040c8b569a49b8a1d7353/test/SpanishTest.php | test/SpanishTest.php | <?php
namespace Wamania\Snowball\Tests;
use PHPUnit\Framework\TestCase;
use Wamania\Snowball\Stemmer\Spanish;
class SpanishTest extends TestCase
{
/**
* @dataProvider load
*/
public function testStem($word, $stem)
{
$o = new Spanish();
$snowballStem = $o->stem($word);
$... | php | MIT | cffeb3abca5cd817acc040c8b569a49b8a1d7353 | 2026-01-05T04:34:49.030441Z | false |
wamania/php-stemmer | https://github.com/wamania/php-stemmer/blob/cffeb3abca5cd817acc040c8b569a49b8a1d7353/test/GermanTest.php | test/GermanTest.php | <?php
namespace Wamania\Snowball\Tests;
use PHPUnit\Framework\TestCase;
use Wamania\Snowball\Stemmer\German;
class GermanTest extends TestCase
{
/**
* @dataProvider load
*/
public function testStem($word, $stem)
{
$o = new German();
$snowballStem = $o->stem($word);
$thi... | php | MIT | cffeb3abca5cd817acc040c8b569a49b8a1d7353 | 2026-01-05T04:34:49.030441Z | false |
wamania/php-stemmer | https://github.com/wamania/php-stemmer/blob/cffeb3abca5cd817acc040c8b569a49b8a1d7353/test/DutchTest.php | test/DutchTest.php | <?php
namespace Wamania\Snowball\Tests;
use PHPUnit\Framework\TestCase;
use Wamania\Snowball\Stemmer\Dutch;
class DutchTest extends TestCase
{
/**
* @dataProvider load
*/
public function testStem($word, $stem)
{
$o = new Dutch();
$snowballStem = $o->stem($word);
$this->... | php | MIT | cffeb3abca5cd817acc040c8b569a49b8a1d7353 | 2026-01-05T04:34:49.030441Z | false |
wamania/php-stemmer | https://github.com/wamania/php-stemmer/blob/cffeb3abca5cd817acc040c8b569a49b8a1d7353/test/PortugueseTest.php | test/PortugueseTest.php | <?php
namespace Wamania\Snowball\Tests;
use PHPUnit\Framework\TestCase;
use Wamania\Snowball\Stemmer\Portuguese;
class PortugueseTest extends TestCase
{
/**
* @dataProvider load
*/
public function testStem($word, $stem)
{
$o = new Portuguese();
$snowballStem = $o->stem($word);
... | php | MIT | cffeb3abca5cd817acc040c8b569a49b8a1d7353 | 2026-01-05T04:34:49.030441Z | false |
wamania/php-stemmer | https://github.com/wamania/php-stemmer/blob/cffeb3abca5cd817acc040c8b569a49b8a1d7353/test/RussianTest.php | test/RussianTest.php | <?php
namespace Wamania\Snowball\Tests;
use PHPUnit\Framework\TestCase;
use Wamania\Snowball\Stemmer\Russian;
class RussianTest extends TestCase
{
/**
* @dataProvider load
*/
public function testStem($word, $stem)
{
$o = new Russian();
$snowballStem = $o->stem($word);
$... | php | MIT | cffeb3abca5cd817acc040c8b569a49b8a1d7353 | 2026-01-05T04:34:49.030441Z | false |
wamania/php-stemmer | https://github.com/wamania/php-stemmer/blob/cffeb3abca5cd817acc040c8b569a49b8a1d7353/test/CsvFileIterator.php | test/CsvFileIterator.php | <?php
namespace Wamania\Snowball\Tests;
class CsvFileIterator implements \Iterator
{
protected $file;
protected $key = 0;
protected $current;
public function __construct($file)
{
if (! ($this->file = fopen($file, 'r'))) {
die('Can\'t open file '.$this->file)."\n";
}
... | php | MIT | cffeb3abca5cd817acc040c8b569a49b8a1d7353 | 2026-01-05T04:34:49.030441Z | false |
wamania/php-stemmer | https://github.com/wamania/php-stemmer/blob/cffeb3abca5cd817acc040c8b569a49b8a1d7353/test/CsvFileVerboseIterator.php | test/CsvFileVerboseIterator.php | <?php
namespace Wamania\Snowball\Tests;
class CsvFileVerboseIterator extends CsvFileIterator
{
public function rewind()
{
parent::rewind();
$this->_updateKey($this->current());
}
public function next()
{
parent::next();
if ($this->valid()) {
$this->_upda... | php | MIT | cffeb3abca5cd817acc040c8b569a49b8a1d7353 | 2026-01-05T04:34:49.030441Z | false |
wamania/php-stemmer | https://github.com/wamania/php-stemmer/blob/cffeb3abca5cd817acc040c8b569a49b8a1d7353/test/RomanianTest.php | test/RomanianTest.php | <?php
namespace Wamania\Snowball\Tests;
use PHPUnit\Framework\TestCase;
use Wamania\Snowball\Stemmer\Romanian;
class RomanianTest extends TestCase
{
/**
* @dataProvider load
*/
public function testStem($word, $stem)
{
$o = new Romanian();
$snowballStem = $o->stem($word);
... | php | MIT | cffeb3abca5cd817acc040c8b569a49b8a1d7353 | 2026-01-05T04:34:49.030441Z | false |
junaidnasir/larainvite | https://github.com/junaidnasir/larainvite/blob/b39adf46b6c0202c2da038400acb8fe8989e7592/src/UserInvitation.php | src/UserInvitation.php | <?php namespace Junaidnasir\Larainvite;
use \Exception;
use Carbon\Carbon;
use Junaidnasir\Larainvite\InvitationInterface;
/**
* User Invitation class
*/
class UserInvitation
{
/**
* @var \Junaidnasir\Larainvite\InvitationInterface
*/
private $interface;
/**
* UserInvitation constructor.
... | php | MIT | b39adf46b6c0202c2da038400acb8fe8989e7592 | 2026-01-05T04:34:59.224436Z | false |
junaidnasir/larainvite | https://github.com/junaidnasir/larainvite/blob/b39adf46b6c0202c2da038400acb8fe8989e7592/src/LaraInvite.php | src/LaraInvite.php | <?php
namespace Junaidnasir\Larainvite;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Junaidnasir\Larainvite\Events\InvitationCanceled;
use Junaidnasir\Larainvite\Events\InvitationConsumed;
use Junaidnasir\Larainvite\Events\InvitationExpired;
use Junaidnasir\Larainvite\Events\Invited;
use Junaidnasir\L... | php | MIT | b39adf46b6c0202c2da038400acb8fe8989e7592 | 2026-01-05T04:34:59.224436Z | false |
junaidnasir/larainvite | https://github.com/junaidnasir/larainvite/blob/b39adf46b6c0202c2da038400acb8fe8989e7592/src/InvitationInterface.php | src/InvitationInterface.php | <?php
namespace Junaidnasir\Larainvite;
interface InvitationInterface
{
/**
* Create new invitation
* @param string $email Email to invite
* @param int $referral Referral
* @param DateTime $expires Expiration Date Time
* @return string Referral code
... | php | MIT | b39adf46b6c0202c2da038400acb8fe8989e7592 | 2026-01-05T04:34:59.224436Z | false |
junaidnasir/larainvite | https://github.com/junaidnasir/larainvite/blob/b39adf46b6c0202c2da038400acb8fe8989e7592/src/InviteTrait.php | src/InviteTrait.php | <?php
namespace Junaidnasir\Larainvite;
trait InviteTrait
{
/**
* return all invitation as laravel collection
* @return hasMany invitation Models
*/
public function invitations()
{
return $this->hasMany(config('larainvite.InvitationModel'));
}
/**
* return successful i... | php | MIT | b39adf46b6c0202c2da038400acb8fe8989e7592 | 2026-01-05T04:34:59.224436Z | false |
junaidnasir/larainvite | https://github.com/junaidnasir/larainvite/blob/b39adf46b6c0202c2da038400acb8fe8989e7592/src/LaraInviteServiceProvider.php | src/LaraInviteServiceProvider.php | <?php
namespace Junaidnasir\Larainvite;
use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Support\ServiceProvider;
class LaraInviteServiceProvider extends ServiceProvider implements DeferrableProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public... | php | MIT | b39adf46b6c0202c2da038400acb8fe8989e7592 | 2026-01-05T04:34:59.224436Z | false |
junaidnasir/larainvite | https://github.com/junaidnasir/larainvite/blob/b39adf46b6c0202c2da038400acb8fe8989e7592/src/Exceptions/InvalidTokenException.php | src/Exceptions/InvalidTokenException.php | <?php
namespace Junaidnasir\Larainvite\Exceptions;
use Exception;
class InvalidTokenException extends Exception
{
//
}
| php | MIT | b39adf46b6c0202c2da038400acb8fe8989e7592 | 2026-01-05T04:34:59.224436Z | false |
junaidnasir/larainvite | https://github.com/junaidnasir/larainvite/blob/b39adf46b6c0202c2da038400acb8fe8989e7592/src/Facades/Invite.php | src/Facades/Invite.php | <?php
namespace Junaidnasir\Larainvite\Facades;
use Illuminate\Support\Facades\Facade;
class Invite extends Facade
{
/**
* @return string
*/
protected static function getFacadeAccessor()
{
return 'invite';
}
}
| php | MIT | b39adf46b6c0202c2da038400acb8fe8989e7592 | 2026-01-05T04:34:59.224436Z | false |
junaidnasir/larainvite | https://github.com/junaidnasir/larainvite/blob/b39adf46b6c0202c2da038400acb8fe8989e7592/src/Config/larainvite.php | src/Config/larainvite.php | <?php
return [
/*
|--------------------------------------------------------------------------
| Invitation Expiration Default
|--------------------------------------------------------------------------
|
| Default Expiry time in Hours from current time.
| i.e now() + expires (hours)
|
... | php | MIT | b39adf46b6c0202c2da038400acb8fe8989e7592 | 2026-01-05T04:34:59.224436Z | false |
junaidnasir/larainvite | https://github.com/junaidnasir/larainvite/blob/b39adf46b6c0202c2da038400acb8fe8989e7592/src/Migrations/2016_03_29_140408_create_invitation_user_table.php | src/Migrations/2016_03_29_140408_create_invitation_user_table.php | <?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateInvitationUserTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_invitations', function (Blueprint $table) ... | php | MIT | b39adf46b6c0202c2da038400acb8fe8989e7592 | 2026-01-05T04:34:59.224436Z | false |
junaidnasir/larainvite | https://github.com/junaidnasir/larainvite/blob/b39adf46b6c0202c2da038400acb8fe8989e7592/src/Models/LaraInviteModel.php | src/Models/LaraInviteModel.php | <?php
namespace Junaidnasir\Larainvite\Models;
use Illuminate\Database\Eloquent\Model;
class LaraInviteModel extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'user_invitations';
/**
* Referral User
*/
public function u... | php | MIT | b39adf46b6c0202c2da038400acb8fe8989e7592 | 2026-01-05T04:34:59.224436Z | false |
junaidnasir/larainvite | https://github.com/junaidnasir/larainvite/blob/b39adf46b6c0202c2da038400acb8fe8989e7592/src/Events/InvitationCanceled.php | src/Events/InvitationCanceled.php | <?php
namespace Junaidnasir\Larainvite\Events;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Junaidnasir\Larainvite\Models\LaraInviteModel;
class InvitationCanceled
{
use Dispatchable, SerializesModels;
public $invitation;
/**
* Create a new event instan... | php | MIT | b39adf46b6c0202c2da038400acb8fe8989e7592 | 2026-01-05T04:34:59.224436Z | false |
junaidnasir/larainvite | https://github.com/junaidnasir/larainvite/blob/b39adf46b6c0202c2da038400acb8fe8989e7592/src/Events/InvitationExpired.php | src/Events/InvitationExpired.php | <?php
namespace Junaidnasir\Larainvite\Events;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Junaidnasir\Larainvite\Models\LaraInviteModel;
class InvitationExpired
{
use Dispatchable, SerializesModels;
public $invitation;
/**
* Create a new event instanc... | php | MIT | b39adf46b6c0202c2da038400acb8fe8989e7592 | 2026-01-05T04:34:59.224436Z | false |
junaidnasir/larainvite | https://github.com/junaidnasir/larainvite/blob/b39adf46b6c0202c2da038400acb8fe8989e7592/src/Events/InvitationConsumed.php | src/Events/InvitationConsumed.php | <?php
namespace Junaidnasir\Larainvite\Events;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Junaidnasir\Larainvite\Models\LaraInviteModel;
class InvitationConsumed
{
use Dispatchable, SerializesModels;
public $invitation;
/**
* Create a new event instan... | php | MIT | b39adf46b6c0202c2da038400acb8fe8989e7592 | 2026-01-05T04:34:59.224436Z | false |
junaidnasir/larainvite | https://github.com/junaidnasir/larainvite/blob/b39adf46b6c0202c2da038400acb8fe8989e7592/src/Events/Invited.php | src/Events/Invited.php | <?php
namespace Junaidnasir\Larainvite\Events;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Junaidnasir\Larainvite\Models\LaraInviteModel;
class Invited
{
use Dispatchable, SerializesModels;
public $invitation;
/**
* Create a new event instance.
*
... | php | MIT | b39adf46b6c0202c2da038400acb8fe8989e7592 | 2026-01-05T04:34:59.224436Z | false |
flyingluscas/correios-php | https://github.com/flyingluscas/correios-php/blob/63e651dd68474b60a9aadfc680c16d89de7df952/src/PackageType.php | src/PackageType.php | <?php
namespace FlyingLuscas\Correios;
abstract class PackageType
{
/**
* Formatos caixa ou pacote.
*/
const BOX = 1;
/**
* Formatos rolo ou prisma.
*/
const ROLL = 2;
/**
* Formato envelope.
*/
const ENVELOPE = 3;
}
| php | MIT | 63e651dd68474b60a9aadfc680c16d89de7df952 | 2026-01-05T04:35:09.129008Z | false |
flyingluscas/correios-php | https://github.com/flyingluscas/correios-php/blob/63e651dd68474b60a9aadfc680c16d89de7df952/src/Client.php | src/Client.php | <?php
namespace FlyingLuscas\Correios;
use GuzzleHttp\ClientInterface;
use GuzzleHttp\Client as HttpClient;
use FlyingLuscas\Correios\Services\Freight;
use FlyingLuscas\Correios\Services\ZipCode;
use FlyingLuscas\Correios\Contracts\FreightInterface;
use FlyingLuscas\Correios\Contracts\ZipCodeInterface;
class Client
... | php | MIT | 63e651dd68474b60a9aadfc680c16d89de7df952 | 2026-01-05T04:35:09.129008Z | false |
flyingluscas/correios-php | https://github.com/flyingluscas/correios-php/blob/63e651dd68474b60a9aadfc680c16d89de7df952/src/Service.php | src/Service.php | <?php
namespace FlyingLuscas\Correios;
abstract class Service
{
/**
* PAC.
*/
const PAC = '4510';
/**
* PAC com contrato.
*/
const PAC_CONTRATO = '4669';
/**
* Sedex.
*/
const SEDEX = '4014';
/**
* Sedex com contrato.
*/
const SEDEX_CONTRATO =... | php | MIT | 63e651dd68474b60a9aadfc680c16d89de7df952 | 2026-01-05T04:35:09.129008Z | false |
flyingluscas/correios-php | https://github.com/flyingluscas/correios-php/blob/63e651dd68474b60a9aadfc680c16d89de7df952/src/WebService.php | src/WebService.php | <?php
namespace FlyingLuscas\Correios;
abstract class WebService
{
/**
* URL do SIGEP webservice dos Correios.
*/
const SIGEP = 'https://apps.correios.com.br/SigepMasterJPA/AtendeClienteService/AtendeCliente';
/**
* URL do webservice dos Correios para calculo de preços e prazos.
*/
... | php | MIT | 63e651dd68474b60a9aadfc680c16d89de7df952 | 2026-01-05T04:35:09.129008Z | false |
flyingluscas/correios-php | https://github.com/flyingluscas/correios-php/blob/63e651dd68474b60a9aadfc680c16d89de7df952/src/Services/ZipCode.php | src/Services/ZipCode.php | <?php
namespace FlyingLuscas\Correios\Services;
use GuzzleHttp\ClientInterface;
use FlyingLuscas\Correios\WebService;
use FlyingLuscas\Correios\Contracts\ZipCodeInterface;
class ZipCode implements ZipCodeInterface
{
/**
* Cliente HTTP
*
* @var \GuzzleHttp\ClientInterface
*/
protected $htt... | php | MIT | 63e651dd68474b60a9aadfc680c16d89de7df952 | 2026-01-05T04:35:09.129008Z | false |
flyingluscas/correios-php | https://github.com/flyingluscas/correios-php/blob/63e651dd68474b60a9aadfc680c16d89de7df952/src/Services/Freight.php | src/Services/Freight.php | <?php
namespace FlyingLuscas\Correios\Services;
use SimpleXMLElement;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\Response;
use GuzzleHttp\ClientInterface;
use FlyingLuscas\Correios\Service;
use FlyingLuscas\Correios\WebService;
use FlyingLuscas\Correios\PackageType;
use FlyingLuscas\Correios\Contracts\FreightInterfac... | php | MIT | 63e651dd68474b60a9aadfc680c16d89de7df952 | 2026-01-05T04:35:09.129008Z | false |
flyingluscas/correios-php | https://github.com/flyingluscas/correios-php/blob/63e651dd68474b60a9aadfc680c16d89de7df952/src/Contracts/ZipCodeInterface.php | src/Contracts/ZipCodeInterface.php | <?php
namespace FlyingLuscas\Correios\Contracts;
interface ZipCodeInterface
{
/**
* Encontrar endereço por CEP.
*
* @param string $zipcode
*
* @return array
*/
public function find($zipcode);
}
| php | MIT | 63e651dd68474b60a9aadfc680c16d89de7df952 | 2026-01-05T04:35:09.129008Z | false |
flyingluscas/correios-php | https://github.com/flyingluscas/correios-php/blob/63e651dd68474b60a9aadfc680c16d89de7df952/src/Contracts/FreightInterface.php | src/Contracts/FreightInterface.php | <?php
namespace FlyingLuscas\Correios\Contracts;
interface FreightInterface
{
/**
* Payload da requisição para o webservice dos Correios.
*
* @param string $service Serviço (Sedex, PAC...)
*
* @return array
*/
public function payload($service);
/**
* CEP de origem.
... | php | MIT | 63e651dd68474b60a9aadfc680c16d89de7df952 | 2026-01-05T04:35:09.129008Z | false |
flyingluscas/correios-php | https://github.com/flyingluscas/correios-php/blob/63e651dd68474b60a9aadfc680c16d89de7df952/tests/ClientTest.php | tests/ClientTest.php | <?php
namespace FlyingLuscas\Correios;
use FlyingLuscas\Correios\Contracts\FreightInterface;
use FlyingLuscas\Correios\Contracts\ZipCodeInterface;
class ClientTest extends TestCase
{
/**
* @var \FlyingLuscas\Correios\Client
*/
protected $correios;
public function setUp()
{
parent::... | php | MIT | 63e651dd68474b60a9aadfc680c16d89de7df952 | 2026-01-05T04:35:09.129008Z | false |
flyingluscas/correios-php | https://github.com/flyingluscas/correios-php/blob/63e651dd68474b60a9aadfc680c16d89de7df952/tests/TestCase.php | tests/TestCase.php | <?php
namespace FlyingLuscas\Correios;
use PHPUnit_Framework_TestCase;
abstract class TestCase extends PHPUnit_Framework_TestCase
{
public function setUp()
{
parent::setUp();
error_reporting(E_ALL);
}
}
| php | MIT | 63e651dd68474b60a9aadfc680c16d89de7df952 | 2026-01-05T04:35:09.129008Z | false |
flyingluscas/correios-php | https://github.com/flyingluscas/correios-php/blob/63e651dd68474b60a9aadfc680c16d89de7df952/tests/Services/FreightTest.php | tests/Services/FreightTest.php | <?php
namespace FlyingLuscas\Correios\Services;
use FlyingLuscas\Correios\PackageType;
use FlyingLuscas\Correios\Service;
use FlyingLuscas\Correios\TestCase;
use GuzzleHttp\Client as HttpClient;
class FreightTest extends TestCase
{
/**
* @var \FlyingLuscas\Correios\Services\Freight
*/
protected $fr... | php | MIT | 63e651dd68474b60a9aadfc680c16d89de7df952 | 2026-01-05T04:35:09.129008Z | false |
flyingluscas/correios-php | https://github.com/flyingluscas/correios-php/blob/63e651dd68474b60a9aadfc680c16d89de7df952/tests/Services/CalculateFreightTest.php | tests/Services/CalculateFreightTest.php | <?php
namespace FlyingLuscas\Correios\Services;
use FlyingLuscas\Correios\Service;
use FlyingLuscas\Correios\TestCase;
use GuzzleHttp\Client as HttpClient;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\Psr7\Response;
class CalculateFreightTest extends TestCase
{
/**
* HTTP ... | php | MIT | 63e651dd68474b60a9aadfc680c16d89de7df952 | 2026-01-05T04:35:09.129008Z | false |
flyingluscas/correios-php | https://github.com/flyingluscas/correios-php/blob/63e651dd68474b60a9aadfc680c16d89de7df952/tests/Services/ZipCodeTest.php | tests/Services/ZipCodeTest.php | <?php
namespace FlyingLuscas\Correios\Services;
use FlyingLuscas\Correios\TestCase;
use GuzzleHttp\Client as HttpClient;
class ZipCodeTest extends TestCase
{
/**
* HTTP Client.
*
* @var \GuzzleHttp\Client
*/
protected $http;
public function setUp()
{
parent::setUp();
... | php | MIT | 63e651dd68474b60a9aadfc680c16d89de7df952 | 2026-01-05T04:35:09.129008Z | false |
mike182uk/cart | https://github.com/mike182uk/cart/blob/12066585a66698f032d71f20fa52e0b9964e851c/src/CartItem.php | src/CartItem.php | <?php
namespace Cart;
/**
* @property string $id
* @property int $quantity
* @property float $price
* @property float $tax
*/
class CartItem implements \ArrayAccess, Arrayable
{
/**
* Cart item data.
*
* @var array
*/
private $data;
/**
* Create a new cart item instance... | php | MIT | 12066585a66698f032d71f20fa52e0b9964e851c | 2026-01-05T04:35:24.625409Z | false |
mike182uk/cart | https://github.com/mike182uk/cart/blob/12066585a66698f032d71f20fa52e0b9964e851c/src/CartRestoreException.php | src/CartRestoreException.php | <?php
namespace Cart;
class CartRestoreException extends \Exception
{
}
| php | MIT | 12066585a66698f032d71f20fa52e0b9964e851c | 2026-01-05T04:35:24.625409Z | false |
mike182uk/cart | https://github.com/mike182uk/cart/blob/12066585a66698f032d71f20fa52e0b9964e851c/src/Cart.php | src/Cart.php | <?php
namespace Cart;
use Cart\Storage\Store;
class Cart implements Arrayable
{
/**
* The cart id.
*
* @var string
*/
private $id;
/**
* Items in the cart.
*
* @var CartItem[]
*/
private $items = [];
/**
* Cart storage implementation.
*
* @... | php | MIT | 12066585a66698f032d71f20fa52e0b9964e851c | 2026-01-05T04:35:24.625409Z | false |
mike182uk/cart | https://github.com/mike182uk/cart/blob/12066585a66698f032d71f20fa52e0b9964e851c/src/Arrayable.php | src/Arrayable.php | <?php
namespace Cart;
interface Arrayable
{
/**
* Get the instance as an array.
*
* @return array
*/
public function toArray();
}
| php | MIT | 12066585a66698f032d71f20fa52e0b9964e851c | 2026-01-05T04:35:24.625409Z | false |
mike182uk/cart | https://github.com/mike182uk/cart/blob/12066585a66698f032d71f20fa52e0b9964e851c/src/Storage/Store.php | src/Storage/Store.php | <?php
namespace Cart\Storage;
interface Store
{
/**
* Retrieve the saved state for a cart instance.
*
* @param string $cartId
*
* @return string
*/
public function get($cartId);
/**
* Save the state for a cart instance.
*
* @param string $cartId
* @param ... | php | MIT | 12066585a66698f032d71f20fa52e0b9964e851c | 2026-01-05T04:35:24.625409Z | false |
mike182uk/cart | https://github.com/mike182uk/cart/blob/12066585a66698f032d71f20fa52e0b9964e851c/src/Storage/SessionStore.php | src/Storage/SessionStore.php | <?php
namespace Cart\Storage;
class SessionStore implements Store
{
/**
* {@inheritdoc}
*/
public function get($cartId)
{
return isset($_SESSION[$cartId]) ? $_SESSION[$cartId] : serialize([]);
}
/**
* {@inheritdoc}
*/
public function put($cartId, $data)
{
... | php | MIT | 12066585a66698f032d71f20fa52e0b9964e851c | 2026-01-05T04:35:24.625409Z | false |
mike182uk/cart | https://github.com/mike182uk/cart/blob/12066585a66698f032d71f20fa52e0b9964e851c/src/Storage/CookieStore.php | src/Storage/CookieStore.php | <?php
namespace Cart\Storage;
class CookieStore implements Store
{
/**
* {@inheritdoc}
*/
public function get($cartId)
{
return isset($_COOKIE[$cartId]) ? $this->decode($_COOKIE[$cartId]) : serialize([]);
}
/**
* {@inheritdoc}
*/
public function put($cartId, $data)... | php | MIT | 12066585a66698f032d71f20fa52e0b9964e851c | 2026-01-05T04:35:24.625409Z | false |
mike182uk/cart | https://github.com/mike182uk/cart/blob/12066585a66698f032d71f20fa52e0b9964e851c/tests/SessionStoreTest.php | tests/SessionStoreTest.php | <?php
namespace Cart;
use Cart\Storage\SessionStore;
use PHPUnit\Framework\TestCase;
class SessionStoreTest extends TestCase
{
public function testGet()
{
$data = 'bar';
$store = new SessionStore();
$store->put('foo', $data);
$this->assertSame($store->get('foo'), $data);
... | php | MIT | 12066585a66698f032d71f20fa52e0b9964e851c | 2026-01-05T04:35:24.625409Z | false |
mike182uk/cart | https://github.com/mike182uk/cart/blob/12066585a66698f032d71f20fa52e0b9964e851c/tests/CookieStoreTest.php | tests/CookieStoreTest.php | <?php
namespace Cart;
use Cart\Storage\CookieStore;
use PHPUnit\Framework\TestCase;
/**
* @TODO: write testings for put, get and flush
*/
class CookieStoreTest extends TestCase
{
public function testEncodeAndDecode()
{
$data = 'Foo';
$store = new CookieStore();
$encodedData = $store... | php | MIT | 12066585a66698f032d71f20fa52e0b9964e851c | 2026-01-05T04:35:24.625409Z | false |
mike182uk/cart | https://github.com/mike182uk/cart/blob/12066585a66698f032d71f20fa52e0b9964e851c/tests/CartItemTest.php | tests/CartItemTest.php | <?php
namespace Cart;
use PHPUnit\Framework\TestCase;
class CartItemTest extends TestCase
{
public function testIsArrayable()
{
$item = new CartItem();
$this->assertInstanceOf('Cart\Arrayable', $item);
$itemArr = $item->toArray();
$this->assertTrue(is_array($itemArr));
... | php | MIT | 12066585a66698f032d71f20fa52e0b9964e851c | 2026-01-05T04:35:24.625409Z | false |
mike182uk/cart | https://github.com/mike182uk/cart/blob/12066585a66698f032d71f20fa52e0b9964e851c/tests/CartTest.php | tests/CartTest.php | <?php
namespace Cart;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use PHPUnit\Framework\Assert;
class CartTest extends TestCase
{
public function tearDown()
{
m::close();
}
public function testIsArrayable()
{
$cart = $this->getCart();
$this->assertInstanceOf('Cart\... | php | MIT | 12066585a66698f032d71f20fa52e0b9964e851c | 2026-01-05T04:35:24.625409Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/registration.php | registration.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
use Magento\Framework\Component\ComponentRegistrar;
ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Opengento_Gdpr', __DIR__);
| php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/EraseEntityChecker.php | Model/EraseEntityChecker.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model;
use Magento\Framework\Exception\NoSuchEntityException;
use Opengento\Gdpr\Api\Data\EraseEntityInterface;
use Opengento\Gdpr\Api\EraseEntit... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/EraseEntityRepository.php | Model/EraseEntityRepository.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model;
use Exception;
use Magento\Framework\Api\SearchCriteria\CollectionProcessorInterface;
use Magento\Framework\Api\SearchCriteriaInterface;
u... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/ExportEntityManagement.php | Model/ExportEntityManagement.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model;
use DateTime;
use Exception;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\Exception\AlreadyExistsException... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/ExportEntityRepository.php | Model/ExportEntityRepository.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model;
use Exception;
use Magento\Framework\Api\SearchCriteria\CollectionProcessorInterface;
use Magento\Framework\Api\SearchCriteriaInterface;
u... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/ActionEntityRepository.php | Model/ActionEntityRepository.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model;
use Exception;
use Magento\Framework\Api\SearchCriteria\CollectionProcessorInterface;
use Magento\Framework\Api\SearchCriteriaInterface;
u... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Config.php | Model/Config.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Store\Model\ScopeInterface;
use function explode;
final class Config
{... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/EraseEntity.php | Model/EraseEntity.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model;
use Magento\Framework\Model\AbstractExtensibleModel;
use Opengento\Gdpr\Api\Data\EraseEntityInterface;
use Opengento\Gdpr\Model\ResourceMo... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/ExportEntityChecker.php | Model/ExportEntityChecker.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model;
use Magento\Framework\Exception\NoSuchEntityException;
use Opengento\Gdpr\Api\ExportEntityCheckerInterface;
use Opengento\Gdpr\Api\ExportE... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/ExportEntity.php | Model/ExportEntity.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model;
use Magento\Framework\Model\AbstractExtensibleModel;
use Opengento\Gdpr\Api\Data\ExportEntityInterface;
use Opengento\Gdpr\Model\ResourceM... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/ActionEntityBuilder.php | Model/ActionEntityBuilder.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model;
use DateTime;
use Opengento\Gdpr\Api\Data\ActionEntityInterface;
use Opengento\Gdpr\Api\Data\ActionEntityInterfaceFactory;
/**
* @api
*... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/ActionEntity.php | Model/ActionEntity.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model;
use DateTime;
use Exception;
use Magento\Framework\Model\AbstractExtensibleModel;
use Opengento\Gdpr\Api\Data\ActionEntityInterface;
use O... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/EraseEntityManagement.php | Model/EraseEntityManagement.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model;
use Exception;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\Exception\CouldNotSaveException;
use Magento\F... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/ResourceModel/EraseEntity.php | Model/ResourceModel/EraseEntity.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\ResourceModel;
use Magento\Framework\DB\Select;
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\Model\AbstractMod... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/ResourceModel/ExportEntity.php | Model/ResourceModel/ExportEntity.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\ResourceModel;
use Magento\Framework\DB\Select;
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\Model\AbstractMod... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/ResourceModel/ActionEntity.php | Model/ResourceModel/ActionEntity.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\ResourceModel;
use Magento\Framework\Model\ResourceModel\Db\Context;
use Magento\Framework\Model\ResourceModel\Db\VersionControl\AbstractDb... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/ResourceModel/EraseEntity/Collection.php | Model/ResourceModel/EraseEntity/Collection.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\ResourceModel\EraseEntity;
use Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection;
use Opengento\Gdpr\Api\Data\EraseEnt... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/ResourceModel/ExportEntity/Collection.php | Model/ResourceModel/ExportEntity/Collection.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\ResourceModel\ExportEntity;
use Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection;
use Opengento\Gdpr\Api\Data\ExportE... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/ResourceModel/ActionEntity/Collection.php | Model/ResourceModel/ActionEntity/Collection.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\ResourceModel\ActionEntity;
use Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection;
use Opengento\Gdpr\Api\Data\ActionE... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/ResourceModel/ActionEntity/Validator.php | Model/ResourceModel/ActionEntity/Validator.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\ResourceModel\ActionEntity;
use Magento\Framework\Validator\AbstractValidator;
use Magento\Framework\Validator\ValidatorInterface;
final c... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/ResourceModel/ActionEntity/Validator/StateValidator.php | Model/ResourceModel/ActionEntity/Validator/StateValidator.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\ResourceModel\ActionEntity\Validator;
use Magento\Framework\Phrase;
use Magento\Framework\Validator\AbstractValidator;
use Opengento\Gdpr\A... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/SourceProviderFactory.php | Model/Entity/SourceProviderFactory.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity;
use InvalidArgumentException;
use Magento\Framework\Data\Collection;
use Magento\Framework\ObjectManagerInterface;
use function spr... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/Metadata.php | Model/Entity/Metadata.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity;
use Magento\Framework\App\Config\ScopeConfigInterface;
use function explode;
final class Metadata implements MetadataInterface
{
... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/DataCollector.php | Model/Entity/DataCollector.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity;
final class DataCollector implements DataCollectorInterface
{
/**
* @var EntityIteratorInterface
*/
private Entit... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/EntityValueProcessorInterface.php | Model/Entity/EntityValueProcessorInterface.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity;
/**
* @api
*/
interface EntityValueProcessorInterface
{
public function process(string $key, $value): void;
}
| php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/EntityCheckerInterface.php | Model/Entity/EntityCheckerInterface.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity;
/**
* @api
*/
interface EntityCheckerInterface
{
/**
* Checks whether or not the entity has pending orders within its re... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/EntityCheckerFactory.php | Model/Entity/EntityCheckerFactory.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity;
use InvalidArgumentException;
use Magento\Framework\ObjectManagerInterface;
use function sprintf;
/**
* @api
*/
final class Enti... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/MetadataInterface.php | Model/Entity/MetadataInterface.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity;
/**
* @api
*/
interface MetadataInterface
{
/**
* Retrieve the registered attributes
*
* @param string|null $s... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/EntityTypeList.php | Model/Entity/EntityTypeList.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity;
use function array_keys;
use function array_merge;
/**
* @api
*/
final class EntityTypeList
{
/**
* @var string[][]
... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/Document.php | Model/Entity/Document.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity;
final class Document implements DocumentInterface
{
private array $data;
public function __construct(array $data = [])
... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/EntityTypeResolver.php | Model/Entity/EntityTypeResolver.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity;
use Exception;
use Magento\Framework\EntityManager\TypeResolver;
/**
* @api
*/
final class EntityTypeResolver
{
private Type... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/DocumentInterface.php | Model/Entity/DocumentInterface.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity;
/**
* @api
*/
interface DocumentInterface
{
public function setData(array $data): void;
public function addData(string $... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/DataCollectorGeneric.php | Model/Entity/DataCollectorGeneric.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity;
use Exception;
use LogicException;
use Magento\Framework\EntityManager\TypeResolver;
use function sprintf;
final class DataCollect... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/DataCollectorInterface.php | Model/Entity/DataCollectorInterface.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity;
/**
* @api
*/
interface DataCollectorInterface
{
public function collect(object $entity): array;
}
| php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/EntityIteratorInterface.php | Model/Entity/EntityIteratorInterface.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity;
/**
* @api
*/
interface EntityIteratorInterface
{
public function iterate(object $entity): void;
}
| php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/EntityIterator.php | Model/Entity/EntityIterator.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity;
use Exception;
use Magento\Framework\EntityManager\HydratorPool;
use Magento\Framework\EntityManager\TypeResolver;
final class Ent... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/EntityValue/CustomAttributesProcessor.php | Model/Entity/EntityValue/CustomAttributesProcessor.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity\EntityValue;
use Magento\Framework\Api\CustomAttributesDataInterface;
use Opengento\Gdpr\Model\Entity\EntityValueProcessorInterface;... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/EntityValue/ExtensibleDataProcessor.php | Model/Entity/EntityValue/ExtensibleDataProcessor.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity\EntityValue;
use Magento\Framework\Api\ExtensibleDataInterface;
use Opengento\Gdpr\Model\Entity\EntityValueProcessorInterface;
use f... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/EntityValue/StrategyProcessor.php | Model/Entity/EntityValue/StrategyProcessor.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity\EntityValue;
use Opengento\Gdpr\Model\Entity\EntityValueProcessorInterface;
final class StrategyProcessor implements EntityValuePro... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/SourceProvider/ModifierComposite.php | Model/Entity/SourceProvider/ModifierComposite.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity\SourceProvider;
use Magento\Framework\Api\Filter;
use Magento\Framework\Data\Collection;
/**
* @api
*/
final class ModifierCompos... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/SourceProvider/ModifierFactory.php | Model/Entity/SourceProvider/ModifierFactory.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity\SourceProvider;
use Magento\Framework\ObjectManagerInterface;
/**
* @api
*/
final class ModifierFactory
{
/**
* @var str... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/SourceProvider/ModifierInterface.php | Model/Entity/SourceProvider/ModifierInterface.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity\SourceProvider;
use Magento\Framework\Api\Filter;
use Magento\Framework\Data\Collection;
/**
* @api
*/
interface ModifierInterfac... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/SourceProvider/NotErasedFilterModifier.php | Model/Entity/SourceProvider/NotErasedFilterModifier.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity\SourceProvider;
use Magento\Framework\Api\Filter;
use Magento\Framework\Data\Collection;
use Magento\Framework\Data\Collection\Abstr... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Entity/SourceProvider/FilterModifier.php | Model/Entity/SourceProvider/FilterModifier.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Entity\SourceProvider;
use Magento\Framework\Api\Filter;
use Magento\Framework\Data\Collection;
use Magento\Framework\Exception\LocalizedEx... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Notifier/AbstractMailSender.php | Model/Notifier/AbstractMailSender.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Notifier;
use Magento\Framework\App\Area;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\Exception\LocalizedE... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Action/AbstractAction.php | Model/Action/AbstractAction.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Action;
use DateTime;
use Opengento\Gdpr\Api\ActionInterface;
use Opengento\Gdpr\Api\Data\ActionEntityInterface;
use Opengento\Gdpr\Api\Dat... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Action/Result.php | Model/Action/Result.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Action;
use DateTime;
use Opengento\Gdpr\Api\Data\ActionResultInterface;
final class Result implements ActionResultInterface
{
/**
... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Action/PerformedByInterface.php | Model/Action/PerformedByInterface.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Action;
/**
* @api
*/
interface PerformedByInterface
{
public function get(): string;
}
| php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Action/ActionComposite.php | Model/Action/ActionComposite.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Action;
use DateTime;
use Magento\Framework\Exception\LocalizedException;
use Opengento\Gdpr\Api\ActionEntityRepositoryInterface;
use Openg... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Action/Context.php | Model/Action/Context.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Action;
use Opengento\Gdpr\Api\Data\ActionContextInterface;
final class Context implements ActionContextInterface
{
private string $pe... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Action/ContextBuilder.php | Model/Action/ContextBuilder.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Action;
use Magento\Framework\App\State;
use Magento\Framework\Exception\LocalizedException;
use Opengento\Gdpr\Api\Data\ActionContextInter... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
opengento/magento2-gdpr | https://github.com/opengento/magento2-gdpr/blob/7719e7b426bc8befb11ad209685378047b508811/Model/Action/ActionFactory.php | Model/Action/ActionFactory.php | <?php
/**
* Copyright © OpenGento, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace Opengento\Gdpr\Model\Action;
use InvalidArgumentException;
use Magento\Framework\ObjectManagerInterface;
use Opengento\Gdpr\Api\ActionInterface;
use function sp... | php | MIT | 7719e7b426bc8befb11ad209685378047b508811 | 2026-01-05T04:35:41.260227Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.