Skip to content

Commit 896ee81

Browse files
committed
make invoice->uuid() method fluent.
1 parent 0f17875 commit 896ee81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Invoice.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public function uuid($uuid = null)
5959
}
6060

6161
$this->uuid = $uuid;
62+
return $this;
6263
}
6364

6465
/**
@@ -68,7 +69,7 @@ public function uuid($uuid = null)
6869
*/
6970
public function getUuid($needNumericUuid = false)
7071
{
71-
if($needNumericUuid){
72+
if ($needNumericUuid) {
7273
$this->uuid = !is_numeric($this->uuid) ? crc32($this->uuid) : $this->uuid;
7374
}
7475
return $this->uuid;

0 commit comments

Comments
 (0)