Skip to content
Snippets Groups Projects
Mic.class.php 698 B
Newer Older
<?php
/**
 *public
 *private
 *protected
 */
class Mic {
    private $brand;
    public $color;
    public $usb_port;
    public $model;
    public $price;
    public $light;
    public function __construct($brand) {
        printf("constructing object ....");
        $this->brand = $brand;
    }
    public function getbrand() {
        return $this->brand;
    }
    public function setlight($light) {
        print ($light);
        print ($this->light);
    }
    private function getmodel() {
        return $this->model;
    }
    public function setmodel($model) {
        $this->model = ucwords($model);
    }
    public function getmodelprox() {
        return $this->getmodel();
    }
}