php 写model层

时间:2022-11-11 07:05:45
<?php
/**
* @author Administrator
*
*/
class User {
private $id;
private $admin;
private $paw;
private $reg;
public function getId(){
return $this->$id;
}
public function setId($id){
return $this->$id = $id;
}
//
public function getAdmin(){
return $this->$admin;
}
public function setAdmin($admin){
return $this->$admin = $admin;
}
//
public function getPaw(){
return $this->$paw;
}
public function setPaw($paw){
return $this->$paw = $paw;
}
//
public function getReg(){
return $this->$reg;
}
public function setReg($reg){
return $this->$reg = $reg;
}
}