woocommerce-paypal-payments/modules/ppcp-wc-gateway/src/WcInboxNotes/InboxNoteAction.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;
}
}