class SingBeerWallSong{ private $noBeers; private $output; private $outputType; public function __construct($noBeers, $type){ $this->noBeers = $noBeers; $this->type = $type; } public function singSong(){ for ($i = $this->noBeers; $i > 0; $i--){ if ($i == 1) { $bottle = "bottle"; }else{ $bottle = "bottles"; }