From faf5be5a17e909fb16f46861a6ff42a2dc17d30f Mon Sep 17 00:00:00 2001 From: colyll Date: Tue, 19 May 2020 01:25:41 +0800 Subject: [PATCH] Update Factory.php add comment in column properties --- src/Coders/Model/Factory.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Coders/Model/Factory.php b/src/Coders/Model/Factory.php index b4047bc0..64f4dbd1 100644 --- a/src/Coders/Model/Factory.php +++ b/src/Coders/Model/Factory.php @@ -342,7 +342,11 @@ protected function properties(Model $model) // Process property annotations $annotations = ''; + $hints = $model->getHints(); foreach ($model->getProperties() as $name => $hint) { + if (!empty($hints[$name])) { + $name .= ' '.$hints[$name]; + } $annotations .= $this->class->annotation('property', "$hint \$$name"); }