Skip to content

Commit

Permalink
make invoice->uuid() method fluent.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ostadi committed Mar 7, 2022
1 parent 0f17875 commit 896ee81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public function uuid($uuid = null)
}

$this->uuid = $uuid;
return $this;
}

/**
Expand All @@ -68,7 +69,7 @@ public function uuid($uuid = null)
*/
public function getUuid($needNumericUuid = false)
{
if($needNumericUuid){
if ($needNumericUuid) {
$this->uuid = !is_numeric($this->uuid) ? crc32($this->uuid) : $this->uuid;
}
return $this->uuid;
Expand Down

0 comments on commit 896ee81

Please sign in to comment.