Location
in package
Data structure to handle Location
Tags
Table of Contents
Properties
- $name : string
Methods
- __construct() : mixed
- __destruct() : mixed
- __toString() : string
- Returns location
- asHashtag() : string
- Hashtag Location name
- equals() : bool
- Compare two objects
- name() : string
- fetch location name
Properties
$name
private
string
$name
Methods
__construct()
public
__construct(string $name) : mixed
Parameters
- $name : string
__destruct()
public
__destruct() : mixed
__toString()
Returns location
public
__toString() : string
Return values
string —Location name
asHashtag()
Hashtag Location name
public
asHashtag() : string
Return values
string —Location name with hashtag for Tweeter/X, Telegram, etc...
equals()
Compare two objects
public
equals(self $other) : bool
Parameters
- $other : self
Return values
bool —true are equals, false otherwise
name()
fetch location name
public
name() : string
Return values
string —location name