ConsentAssignment
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 | $consent | ||
bool | $active | ||
Carbon | $timestamp | ||
Carbon|null | $revoked_timestamp | ||
string|null | $source | ||
string|null | $ip | ||
string|null | $comment |
Methods
__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
static ConsentAssignment
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)
in
Accessors at line 30
array
toArray()
Get the raw attributes
in
Accessors at line 39
mixed
__get(string $property)
in
Accessors at line 67
__set(string $property, mixed $value)
in
Accessors at line 97
bool
__isset(string $property)
in
Accessors at line 105
__unset(string $key)
in
Accessors at line 116
bool
offsetExists(string $property)
in
Accessors at line 127
mixed
offsetGet(string $property)
in
Accessors at line 137
mixed
offsetSet(string $property, mixed $value)
in
Accessors at line 146
void
offsetUnset(string $key)
in
Accessors at line 154
string
__toString()
at line 38
protected
__construct(array $attributes = [], int $customer_id = null)
at line 47
int
getIdAttribute()
at line 58
Consent
getConsentAttribute(array $consent)
Undocumented function
at line 67
int
getAssignmentIdAttribute(string $assignment_id)
at line 76
bool
getActiveAttribute(string $active)
at line 85
Carbon
getTimestampAttribute(string $timestamp)
at line 94
Carbon|null
getRevokedTimestampAttribute(string $revoked_timestamp)
at line 107
bool
revoke(Carbon|string|null $timestamp = null)
Revokes the assignment
at line 124
static int
create(Consent|int $consent, Customer|int $customer, array $options = [])
Creates a assignment