class AnnotationAssistanceRequest extends Model

With an annotation assistance request a BIIGLE user can consult some externa person for the label of a specific annotation.

Traits

HasFactory

Properties

protected array $casts

The attributes that should be casted to native types.

Methods

static string
generateToken()

Generate a token for use in the annotation assistance request URL.

BelongsTo
user()

The user that created the assistance request.

BelongsTo
receiver()

The (optional) user that should receive the assistance request.

BelongsTo
annotation()

The annotation to which the assistance request belongs.

array
getResponseLabelAttribute()

Get the chosen response label from the request labels array.

static Factory
newFactory()

Create a new factory instance for the model.

Details

at line 38
static string generateToken()

Generate a token for use in the annotation assistance request URL.

Return Value

string

at line 52
BelongsTo user()

The user that created the assistance request.

Return Value

BelongsTo

at line 62
BelongsTo receiver()

The (optional) user that should receive the assistance request.

Return Value

BelongsTo

at line 72
BelongsTo annotation()

The annotation to which the assistance request belongs.

Return Value

BelongsTo

at line 82
array getResponseLabelAttribute()

Get the chosen response label from the request labels array.

Return Value

array

at line 100
static protected Factory newFactory()

Create a new factory instance for the model.

Return Value

Factory