class ConsentAssignment implements JsonSerializable, Jsonable

Traits

Properties

protected array $timestamps from  Timestamps
protected array $attributes from  Accessors
array $modified from  Accessors
protected int $customer_id
int $assignment_id
$consent
bool $active
Carbon $timestamp
Carbon|null $revoked_timestamp
string|null $source
string|null $ip
string|null $comment

Methods

serializeTimestamp($value)

No description

array
toArray()

Get the raw attributes

mixed
__get(string $property)

No description

__set(string $property, mixed $value)

No description

bool
__isset(string $property)

No description

__unset(string $key)

No description

bool
offsetExists(string $property)

No description

mixed
offsetGet(string $property)

No description

mixed
offsetSet(string $property, mixed $value)

No description

void
offsetUnset(string $key)

No description

string
__toString()

No description

__construct(array $attributes = [], int $customer_id = null)

No description

int
getIdAttribute()

No description

Consent
getConsentAttribute(array $consent)

Undocumented function

int
getAssignmentIdAttribute(string $assignment_id)

No description

bool
getActiveAttribute(string $active)

No description

Carbon
getTimestampAttribute(string $timestamp)

No description

Carbon|null
getRevokedTimestampAttribute(string $revoked_timestamp)

No description

bool
revoke(Carbon|string|null $timestamp = null)

Revokes the assignment

static int
create(Consent|int $consent, Customer|int $customer, array $options = [])

Creates a assignment

newFromBuilder(array $attributes)

No description

array
jsonSerialize()

No description

string
toJson(int $options = 0)

No description

array
__debugInfo()

No description

Details

in Timestamps at line 18
serializeTimestamp($value)

Parameters

$value

in Accessors at line 30
array toArray()

Get the raw attributes

Return Value

array

in Accessors at line 39
mixed __get(string $property)

Parameters

string $property

Return Value

mixed

in Accessors at line 67
__set(string $property, mixed $value)

Parameters

string $property
mixed $value

in Accessors at line 97
bool __isset(string $property)

Parameters

string $property

Return Value

bool

in Accessors at line 105
__unset(string $key)

Parameters

string $key

in Accessors at line 116
bool offsetExists(string $property)

Parameters

string $property

Return Value

bool

in Accessors at line 127
mixed offsetGet(string $property)

Parameters

string $property

Return Value

mixed

in Accessors at line 137
mixed offsetSet(string $property, mixed $value)

Parameters

string $property
mixed $value

Return Value

mixed

in Accessors at line 146
void offsetUnset(string $key)

Parameters

string $key

Return Value

void

in Accessors at line 154
string __toString()

Return Value

string

at line 38
protected __construct(array $attributes = [], int $customer_id = null)

Parameters

array $attributes
int $customer_id

at line 47
int getIdAttribute()

Return Value

int

at line 58
Consent getConsentAttribute(array $consent)

Undocumented function

Parameters

array $consent

Return Value

Consent

at line 67
int getAssignmentIdAttribute(string $assignment_id)

Parameters

string $assignment_id

Return Value

int

at line 76
bool getActiveAttribute(string $active)

Parameters

string $active

Return Value

bool

at line 85
Carbon getTimestampAttribute(string $timestamp)

Parameters

string $timestamp

Return Value

Carbon

at line 94
Carbon|null getRevokedTimestampAttribute(string $revoked_timestamp)

Parameters

string $revoked_timestamp

Return Value

Carbon|null

at line 107
bool revoke(Carbon|string|null $timestamp = null)

Revokes the assignment

Parameters

Carbon|string|null $timestamp

Return Value

bool

at line 124
static int create(Consent|int $consent, Customer|int $customer, array $options = [])

Creates a assignment

Parameters

Consent|int $consent
Customer|int $customer
array $options

Return Value

int

at line 155
static ConsentAssignment newFromBuilder(array $attributes)

Parameters

array $attributes

Return Value

ConsentAssignment

at line 170
array jsonSerialize()

Return Value

array

at line 188
string toJson(int $options = 0)

Parameters

int $options

Return Value

string

at line 196
array __debugInfo()

Return Value

array