Skip to content

Commit

Permalink
Add remove line to invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
Wimmie committed Mar 25, 2024
1 parent 61a5ff6 commit 6c4cf92
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ public function addLine(InvoiceLine $line)
return $this;
}

public function removeLine(InvoiceLine $line)
{
unset($this->lines[$line->getID()]);
return $this;
}

/**
* @return InvoiceLine[]
*/
Expand Down

0 comments on commit 6c4cf92

Please sign in to comment.