mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
26 lines
535 B
PHP
26 lines
535 B
PHP
<?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,
|
|
InboxNoteActionInterface $action
|
|
): InboxNoteInterface {
|
|
return new InboxNote( $title, $content, $type, $name, $status, $is_enabled, $action );
|
|
}
|
|
}
|