diff --git a/src/Model/Model.php b/src/Model/Model.php index c694dd9..14f45b0 100644 --- a/src/Model/Model.php +++ b/src/Model/Model.php @@ -87,6 +87,20 @@ public function getProtecteds() : array return $this->protecteds; } + /** + * Function setId + * Set entity ID (unique on system identification) + * @param int $id + * @return Model + */ + public function setId(int $id = null) : Model + { + if ($id > 0) { + $this->id = $id; + } + return $this; + } + /** * Function getId * Return entity ID (unique on system identification)