Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Lg implements Remote{
- private $tombol=0;
- public $chanel = array(0=>1,"SCTV","TVONE","GLOBALTV","RCTI");
- //method
- public function pindahChanel($chanel){
- echo "chanel sekarang: ". $this->chanel[$chanel]."<br />";
- }
- public function perbesarSuara($tombol){
- echo "<b>remote lg suara diperbesar dari ";
- echo $this->tombol." menjadi: ";
- echo $this->tombol+ $tombol."<br /></b>";
- }
- public function perkecilSuara($tombol){
- echo "<b>remote lg suara diperkecil dari ";
- echo $this->tombol." menjadi: ";
- echo $this->tombol-$tombol."<br /></b>";
- }
- public function zoomOutGambar($tombol){
- echo "tombol di ZoomOut ";
- echo $tombol."%<br />";
- }
- public function zoomInGambar($tombol){
- echo "tombol di ZoomIn ";
- echo $tombol."%<br />";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement