Use object instead of stdclass for payment source properties

This commit is contained in:
Emili Castells Guasch 2023-12-11 14:03:39 +01:00
parent 586e9451f6
commit 0e8e4dcaeb
2 changed files with 5 additions and 10 deletions

View file

@ -33,10 +33,10 @@ class PaymentSource {
/**
* PaymentSource constructor.
*
* @param string $name Payment source name.
* @param stdClass $properties Payment source properties.
* @param string $name Payment source name.
* @param object $properties Payment source properties.
*/
public function __construct( string $name, stdClass $properties ) {
public function __construct( string $name, object $properties ) {
$this->name = $name;
$this->properties = $properties;
}
@ -53,9 +53,9 @@ class PaymentSource {
/**
* Payment source properties.
*
* @return stdClass
* @return object
*/
public function properties(): stdClass {
public function properties(): object {
return $this->properties;
}
}