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,
|
2025-08-15 20:26:16 +04:00
|
|
|
bool $is_enabled,
|
2025-08-04 17:49:48 +04:00
|
|
|
InboxNoteActionInterface $action
|
|
|
|
): InboxNoteInterface {
|
2025-08-15 20:26:16 +04:00
|
|
|
return new InboxNote( $title, $content, $type, $name, $status, $is_enabled, $action );
|
2025-08-04 17:49:48 +04:00
|
|
|
}
|
|
|
|
}
|