public function __construct($id) { parent::__construct($id); if ($this->type != "MT") { throw new Exception("not a MT engine"); } }