Commit 615c5175 by zhufx

去除getter参数

parent 9f676bb2
...@@ -164,7 +164,6 @@ class User ...@@ -164,7 +164,6 @@ class User
{ {
foreach ($arr as $name => $value) { foreach ($arr as $name => $value) {
$methodName = sprintf('set%s', ucfirst($name)); $methodName = sprintf('set%s', ucfirst($name));
var_dump(method_exists($this, $methodName),$this,$methodName);
if (method_exists($this, $methodName)) { if (method_exists($this, $methodName)) {
$this->$methodName($value); $this->$methodName($value);
} }
...@@ -172,28 +171,28 @@ class User ...@@ -172,28 +171,28 @@ class User
} }
public function getSessionKey($value) public function getSessionKey()
{ {
return $this->sessionKey; return $this->sessionKey;
} }
public function getOpenId($value) public function getOpenId()
{ {
return $this->openId; return $this->openId;
} }
public function getUnionid($value) public function getUnionid()
{ {
return $this->unionid; return $this->unionid;
} }
public function getReferId($value) public function getReferId()
{ {
return $this->referId; return $this->referId;
} }
public function getScope($value) public function getScope()
{ {
return $this->scope; return $this->scope;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment