Skip to content

Commit 6b6e22f

Browse files
author
codeatbusiness
committed
First commit
1 parent 54acb97 commit 6b6e22f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Overloading/SignatureTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public function __call($name, $arguments) {
88
$property = "_$key";
99
for($i = 0;$i <count($this->_signature[$name]);$i++){
1010
if($key == $this->_signature[$name][$i]){
11+
//Here only change the object property
1112
$this->$property = $arguments[0][$key];
1213
}
1314
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ trait SignatureTrait {
1818
$property = "_$key";
1919
for($i = 0;$i <count($this->_signature[$name]);$i++){
2020
if($key == $this->_signature[$name][$i]){
21+
//Here only change the object property
2122
$this->$property = $arguments[0][$key];
2223
}
2324
}

0 commit comments

Comments
 (0)