class TenantRepository extends Repository (View source)

Properties

Connection $database from  Repository
protected string $tableName from  Repository

Methods

__construct(Repository $config)

No description

table()

No description

getTable(Repository $config)

No description

__call($method, $parameters)

No description

all($ids = [])

No description

find($tenant)

No description

findBy(string $key, $value)

No description

updateTenant(Tenant $tenant)

No description

exists(Tenant $tenant)

No description

get(string $key, Tenant $tenant)

No description

getMany(array $keys, Tenant $tenant)

No description

put(string $key, $value, Tenant $tenant)

No description

putMany(array $kvPairs, Tenant $tenant)

No description

deleteMany(array $keys, Tenant $tenant)

No description

array
decodeFreshDataForTenant(Tenant $tenant)

No description

static array
decodeData(array $columns)

No description

insert(Tenant $tenant)

No description

static array
encodeData(array $data)

No description

static array
customColumns()

No description

static string
dataColumn()

No description

Details

__construct(Repository $config)

No description

Parameters

Repository $config

table()

No description

getTable(Repository $config)

No description

Parameters

Repository $config

__call($method, $parameters)

No description

Parameters

$method
$parameters

all($ids = [])

No description

Parameters

$ids

find($tenant)

No description

Parameters

$tenant

findBy(string $key, $value)

No description

Parameters

string $key
$value

updateTenant(Tenant $tenant)

No description

Parameters

Tenant $tenant

exists(Tenant $tenant)

No description

Parameters

Tenant $tenant

get(string $key, Tenant $tenant)

No description

Parameters

string $key
Tenant $tenant

getMany(array $keys, Tenant $tenant)

No description

Parameters

array $keys
Tenant $tenant

put(string $key, $value, Tenant $tenant)

No description

Parameters

string $key
$value
Tenant $tenant

putMany(array $kvPairs, Tenant $tenant)

No description

Parameters

array $kvPairs
Tenant $tenant

deleteMany(array $keys, Tenant $tenant)

No description

Parameters

array $keys
Tenant $tenant

array decodeFreshDataForTenant(Tenant $tenant)

No description

Parameters

Tenant $tenant

Return Value

array

static array decodeData(array $columns)

No description

Parameters

array $columns

Return Value

array

insert(Tenant $tenant)

No description

Parameters

Tenant $tenant

static array encodeData(array $data)

No description

Parameters

array $data

Return Value

array

static array customColumns()

No description

Return Value

array

static string dataColumn()

No description

Return Value

string