Skip to content

Commit

Permalink
setData允许语法糖
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed Sep 9, 2024
1 parent 8780327 commit 4d234df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AbstractInterface/AbstractEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private function init()
}
}

function setData(array $data,bool $mergeCompare = false)
function setData(array $data,bool $mergeCompare = false):static
{
$entityRef = ReflectionCache::getInstance()->parseEntity(static::class);
$allProperties = $entityRef->allProperties();
Expand Down Expand Up @@ -94,6 +94,7 @@ function setData(array $data,bool $mergeCompare = false)
}
}
}
return $this;
}

function all():ListResult
Expand Down

0 comments on commit 4d234df

Please sign in to comment.