Skip to content

Commit

Permalink
新增成员类型判断
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed Mar 7, 2019
1 parent f2467d3 commit 68a5937
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SplBean.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class SplBean implements \JsonSerializable
public function __construct(array $data = null,$autoCreateProperty = false)
{
$this->_keyMap = $this->setKeyMapping();
$this->_classMap = $this->setTypeMapping();
$this->_classMap = $this->setClassMapping();
if($data){
$this->arrayToBean($data,$autoCreateProperty);
}
Expand Down Expand Up @@ -168,7 +168,7 @@ protected function setKeyMapping():array
/*
* return ['property'=>class string]
*/
protected function setTypeMapping():array
protected function setClassMapping():array
{
return [];
}
Expand Down

0 comments on commit 68a5937

Please sign in to comment.