WorkflowApprovalResponse
extends BaseEntity
in package
WorkflowApprovalResponse Entity
Individual approval decision from a member for a workflow approval gate.
Table of Contents
Constants
- DECISION_ABSTAIN : mixed = 'abstain'
- DECISION_APPROVE : mixed = 'approve'
- DECISION_REJECT : mixed = 'reject'
- DECISION_REQUEST_CHANGES : mixed = 'request_changes'
Properties
- $branch_id : int|null
- $comment : string|null
- $created : DateTime|null
- $decision : string
- $id : int
- $member : Member
- $member_id : int
- $modified : DateTime|null
- $responded_at : DateTime
- $workflow_approval : WorkflowApproval
- $workflow_approval_id : int
- $_accessible : array<string, bool>
- Fields that can be mass assigned.
Methods
- getBranchId() : int|null
- Get the branch ID for authorization checks.
Constants
DECISION_ABSTAIN
public
mixed
DECISION_ABSTAIN
= 'abstain'
DECISION_APPROVE
public
mixed
DECISION_APPROVE
= 'approve'
DECISION_REJECT
public
mixed
DECISION_REJECT
= 'reject'
DECISION_REQUEST_CHANGES
public
mixed
DECISION_REQUEST_CHANGES
= 'request_changes'
Properties
$branch_id
public
int|null
$branch_id
Associated branch ID (when applicable)
$comment
public
string|null
$comment
$created
public
DateTime|null
$created
$decision
public
string
$decision
$id
public
int
$id
$member
public
Member
$member
$member_id
public
int
$member_id
$modified
public
DateTime|null
$modified
Last modification timestamp
$responded_at
public
DateTime
$responded_at
$workflow_approval
public
WorkflowApproval
$workflow_approval
$workflow_approval_id
public
int
$workflow_approval_id
$_accessible
Fields that can be mass assigned.
protected
array<string, bool>
$_accessible
= ['workflow_approval_id' => true, 'member_id' => true, 'decision' => true, 'comment' => true, 'responded_at' => true]
Methods
getBranchId()
Get the branch ID for authorization checks.
public
getBranchId() : int|null
Child classes should override for complex branch relationships.
Return values
int|null —The branch ID, or null if no association