forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding event to billing deleting of payment (openemr#6842)
* Adding event to billing deleting of payment * changed license and added space * changed license and added space * removing escaping
- Loading branch information
1 parent
d25d771
commit 74366f3
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
/* | ||
* @package openemr | ||
* @link https://www.open-emr.org | ||
* @author Sherwin Gaddis <[email protected]> | ||
* @copyright (c) 2023 | ||
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 | ||
*/ | ||
|
||
namespace OpenEMR\Events\Billing\Payments; | ||
|
||
use Symfony\Contracts\EventDispatcher\Event; | ||
|
||
class DeletePayment extends Event | ||
{ | ||
const ACTION_DELETE_PAYMENT = 'billing.payment.action.delete.payment'; | ||
private int $paymentId = 0; | ||
public function __construct($paymentId) | ||
{ | ||
$this->paymentId = $paymentId; | ||
} | ||
public function getPaymentId(): int | ||
{ | ||
return $this->paymentId; | ||
} | ||
} |