Пример #1
0
    {
        return $this->kw;
    }
    public function setBrNaVozdushniPernichinja($i)
    {
        $this->br_vozdushni_pernichinja = $i;
    }
    public function getBrNaVozdushniPernichinja()
    {
        return $this->br_vozdushni_pernichinja;
    }
    public function setModel($i)
    {
        $this->model = $i;
    }
    public function getModel()
    {
        return $this->model;
    }
    public function pali()
    {
        echo "brm brm brm!";
    }
}
$bmw = new BMW();
$bmw->setModel('X5');
$bmw->setKw(400);
$bmw->pali();
echo "<pre>";
print_r($bmw);
echo "</pre>";