KMP PHP API Reference

GatheringType extends BaseEntity
in package

GatheringType Entity

Defines types of gatherings (e.g., Tournament, Practice, Feast, Court). Gathering types can be marked as clonable to serve as templates.

Table of Contents

Properties

$branch_id  : int|null
$clonable  : bool
$color  : string
$created  : DateTime
$description  : string|null
$gathering_activities  : array<string|int, GatheringActivity>
$gatherings  : array<string|int, Gathering>
$id  : int
$modified  : DateTime
$name  : string
$_accessible  : array<string, bool>
Fields that can be mass assigned using newEntity() or patchEntity().

Methods

getBranchId()  : int|null
Get the branch ID for authorization checks.

Properties

$branch_id

public int|null $branch_id

Associated branch ID (when applicable)

$_accessible

Fields that can be mass assigned using newEntity() or patchEntity().

protected array<string, bool> $_accessible = ['name' => true, 'description' => true, 'color' => true, 'clonable' => true, 'created' => true, 'modified' => true, 'gatherings' => true, 'gathering_activities' => 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


        
On this page

Search results