mirror of
https://gh.wpcy.net/https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-04-27 01:22:18 +08:00
31 lines
469 B
PHP
31 lines
469 B
PHP
<?php
|
|
|
|
namespace Automattic\WooCommerce\Admin\Notes;
|
|
|
|
if (!trait_exists('NoteTraits')) {
|
|
/**
|
|
* Stub for WooCommerce Admin NoteTraits
|
|
*/
|
|
trait NoteTraits {
|
|
/**
|
|
* Get the note.
|
|
*/
|
|
public static function get_note() {
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Possibly add the note.
|
|
*/
|
|
public static function possibly_add_note() {
|
|
// Stub method
|
|
}
|
|
|
|
/**
|
|
* Can the note be added?
|
|
*/
|
|
public static function can_be_added() {
|
|
return false;
|
|
}
|
|
}
|
|
}
|