mirror of
https://gh.wpcy.net/https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-05-03 06:19:01 +08:00
47 lines
1.1 KiB
PHP
47 lines
1.1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* @package WooCommerce\PayPalCommerce\WcGateway\WcInboxNotes
|
|
*/
|
|
declare (strict_types=1);
|
|
namespace WooCommerce\PayPalCommerce\WcGateway\WcInboxNotes;
|
|
|
|
/**
|
|
* An action that can be performed on a WooCommerce inbox note.
|
|
*/
|
|
class InboxNoteAction implements \WooCommerce\PayPalCommerce\WcGateway\WcInboxNotes\InboxNoteActionInterface
|
|
{
|
|
protected string $name;
|
|
protected string $label;
|
|
protected string $url;
|
|
protected string $status;
|
|
protected bool $is_primary;
|
|
public function __construct(string $name, string $label, string $url, string $status, bool $is_primary)
|
|
{
|
|
$this->name = $name;
|
|
$this->label = $label;
|
|
$this->url = $url;
|
|
$this->status = $status;
|
|
$this->is_primary = $is_primary;
|
|
}
|
|
public function name(): string
|
|
{
|
|
return $this->name;
|
|
}
|
|
public function label(): string
|
|
{
|
|
return $this->label;
|
|
}
|
|
public function url(): string
|
|
{
|
|
return $this->url;
|
|
}
|
|
public function status(): string
|
|
{
|
|
return $this->status;
|
|
}
|
|
public function is_primary(): bool
|
|
{
|
|
return $this->is_primary;
|
|
}
|
|
}
|