<?php
class Radio
{
private $powered; // true or false
private $volume; // 0 - 10
private $channel; // 535kHz - 1700kHz, 87.5MHz - 108MHz
// Getters
public function getPowered()
{
return $this->powered;
}
public function getVolume()
{
return $this->volume;
}
public function getChannel()
{
return $this->channel;
}
// Setters
public function setPowered($powered)
{
$this->powered = $powered;
}
public function setVolume($volume)
{
$this->volume = $volume;
}
public function setChannel($channel)
{
$this->channel = $channel;
}
// General Methods
public function scanChannels()
{
// find the next channel with a strong signal
}
public function getCurrentSong()
{
// reads live metadata from current channel about current song
// being played and returns song title, etc...
}
}