Documentation

Roadtrip extends Entity
in package

Roadtrip Entity

Table of Contents

Properties

$comments  : array<string|int, Comment>
$created  : DateTime|null
$description  : string|null
$favorites  : array<string|int, Favorite>
$histories  : array<string|int, History>
$id  : int
$photo_url  : string|null
$points_of_interests  : array<string|int, PointsOfInterest>
$shared_roadtrips  : array<string|int, SharedRoadtrip>
$status  : string|null
$title  : string
$trips  : array<string|int, Trip>
$user  : User
$user_id  : int
$visibility  : string|null
$_accessible  : array<string, bool>
Fields that can be mass assigned using newEntity() or patchEntity().

Methods

_getCoverImage()  : string
Calculate and return the url of the cover image
_getIsCompleted()  : bool
Check if the roadtrip is over.

Properties

$description

public string|null $description

$visibility

public string|null $visibility

$_accessible

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

protected array<string, bool> $_accessible = ['title' => true, 'description' => true, 'visibility' => true, 'created' => true, 'user_id' => true, 'photo_url' => true, 'status' => true, 'user' => true, 'comments' => true, 'favorites' => true, 'histories' => true, 'shared_roadtrips' => true, 'trips' => true, 'points_of_interests' => true, 'place' => true, 'photo_cover' => true]

Note that when '' is set to true, this allows all unspecified fields to be mass assigned. For security purposes, it is advised to set '' to false (or remove it), and explicitly make individual fields accessible as needed.

Methods

_getCoverImage()

Calculate and return the url of the cover image

protected _getCoverImage() : string
Return values
string

_getIsCompleted()

Check if the roadtrip is over.

protected _getIsCompleted() : bool
Return values
bool

        
On this page

Search results