Radio
in package
implements
RadioInterface
FinalYes
Handle radio streams using TuneIn.
Table of Contents
Interfaces
Constants
Properties
Methods
- __construct() : mixed
- Create a new instance.
- getFavouriteShow() : Stream
- Get the favourite radio show with the specified name.
- getFavouriteShows() : array<string|int, Stream>
- Get the favourite radio shows.
- getFavouriteStation() : Stream
- Get the favourite radio station with the specified name.
- getFavouriteStations() : array<string|int, Stream>
- Get the favourite radio stations.
- getFavourites() : array<string|int, Stream>
- Get the favourite radio shows/stations.
Constants
SHOWS
private
int
SHOWS
= 1
The key for show types.
STATIONS
private
int
STATIONS
= 0
The key for station types.
Properties
$controller
protected
ControllerInterface
$controller
The Controller instance to send commands to.
Methods
__construct()
Create a new instance.
public
__construct(ControllerInterface $controller) : mixed
Parameters
- $controller : ControllerInterface
-
A Controller instance to send commands to
getFavouriteShow()
Get the favourite radio show with the specified name.
public
getFavouriteShow(string $name) : Stream
If no case-sensitive match is found it will return a case-insensitive match.
Parameters
- $name : string
-
The name of the show
Return values
StreamgetFavouriteShows()
Get the favourite radio shows.
public
getFavouriteShows() : array<string|int, Stream>
Return values
array<string|int, Stream>getFavouriteStation()
Get the favourite radio station with the specified name.
public
getFavouriteStation(string $name) : Stream
If no case-sensitive match is found it will return a case-insensitive match.
Parameters
- $name : string
-
The name of the station
Return values
StreamgetFavouriteStations()
Get the favourite radio stations.
public
getFavouriteStations() : array<string|int, Stream>
Return values
array<string|int, Stream>getFavourites()
Get the favourite radio shows/stations.
protected
getFavourites(int $type) : array<string|int, Stream>
Parameters
- $type : int
-
One of the class constants for either shows or stations