abstract class HouseAbstract {
public $model = "";
public $square;
public $floors;
function __construct($model, $square = 0, $floors = 1){
if(!$model)
throw new Exception('Ошибка!Укажите модель!');
$this->model = $model;
$this->square = $square;
$this->floors = $floors;
}
function startProject(){
echo "Start. Model: {$this->model}\n";
}
function stopProject(){
echo "Stop. Model: {$this->model}\n\n";
}
// Абстрактный метод
abstract function build();
}