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
$comments
public
array<string|int, Comment>
$comments
$created
public
DateTime|null
$created
$description
public
string|null
$description
$favorites
public
array<string|int, Favorite>
$favorites
$histories
public
array<string|int, History>
$histories
$id
public
int
$id
$photo_url
public
string|null
$photo_url
$points_of_interests
public
array<string|int, PointsOfInterest>
$points_of_interests
$shared_roadtrips
public
array<string|int, SharedRoadtrip>
$shared_roadtrips
$status
public
string|null
$status
$title
public
string
$title
$trips
public
array<string|int, Trip>
$trips
$user
public
User
$user
$user_id
public
int
$user_id
$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