Skip to content

Commit

Permalink
Fix PropertyNotSetInConstructor issues by making classes final.
Browse files Browse the repository at this point in the history
  • Loading branch information
remcotolsma committed May 3, 2024
1 parent 57b819c commit efd0014
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@

namespace Pronamic\WordPress\Pay\Gateways\OmniKassa2;

use JsonSerializable;

/**
* Address
*
* @author Remco Tolsma
* @version 2.1.10
* @since 2.0.2
*/
class Address implements \JsonSerializable {
final class Address implements JsonSerializable {
/**
* First name.
*
Expand Down
3 changes: 2 additions & 1 deletion src/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
namespace Pronamic\WordPress\Pay\Gateways\OmniKassa2;

use DateTime;
use JsonSerializable;

/**
* Order
Expand All @@ -19,7 +20,7 @@
* @version 2.2.4
* @since 1.0.0
*/
class Order extends Message implements \JsonSerializable {
final class Order extends Message implements JsonSerializable {
/**
* ISO 8601 standard Date / time on which the order is announced at ROK.
* As a rule, this is the current date / time.
Expand Down
4 changes: 3 additions & 1 deletion src/OrderItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@

namespace Pronamic\WordPress\Pay\Gateways\OmniKassa2;

use JsonSerializable;

/**
* Order item.
*
* @author Reüel van der Steege
* @version 2.1.10
* @since 2.0.3
*/
class OrderItem implements \JsonSerializable {
final class OrderItem implements JsonSerializable {
/**
* Item id.
*
Expand Down

0 comments on commit efd0014

Please sign in to comment.