woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/Settings/WcInboxNotes/InboxNoteFactory.php

27 lines
535 B
PHP
Raw Normal View History

2025-08-04 17:49:48 +04:00
<?php
/**
* @package WooCommerce\PayPalCommerce\WcGateway\Settings
*/
declare( strict_types=1 );
namespace WooCommerce\PayPalCommerce\WcGateway\Settings\WcInboxNotes;
/**
* A factory for creating inbox notes.
*/
class InboxNoteFactory {
public function create_note(
string $title,
string $content,
string $type,
string $name,
string $status,
bool $is_enabled,
2025-08-04 17:49:48 +04:00
InboxNoteActionInterface $action
): InboxNoteInterface {
return new InboxNote( $title, $content, $type, $name, $status, $is_enabled, $action );
2025-08-04 17:49:48 +04:00
}
}