Skip to content

Commit 0939420

Browse files
committed
Adds static make() function to InvoiceItem.
1 parent 4cb4aab commit 0939420

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Classes/InvoiceItem.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ public function __construct()
7070
$this->tax = 0.0;
7171
}
7272

73+
public static function make($title)
74+
{
75+
return (new self())->title($title);
76+
}
77+
7378
/**
7479
* @param string $title
7580
* @return $this

0 commit comments

Comments
 (0)