Jake Vanderwerf
2026-03-29 9f672be1f7bb5f8462374ca4732d095d4f24685b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
namespace JVBase\managers\SEO\render\Traits\_Properties;
 
use JVBase\managers\SEO\render\Traits\_Helpers\arrayHelper;
 
if (!defined('ABSPATH')) {
    exit;
}
trait paymentAcceptedTrait {
    use arrayHelper;
    /**
     * @var array|string Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.
     */
    protected array|string $paymentAccepted;
 
    public function getPaymentAccepted():array|string|null
    {
        return $this->paymentAccepted??null;
    }
    public function setPaymentAccepted(array|string $paymentAccepted):void
    {
        if (is_array($paymentAccepted)) {
            $paymentAccepted = $this->stringArray('paymentAccepted', $paymentAccepted);
        }
        $this->paymentAccepted = $paymentAccepted;
    }
 
    public function getPaymentAcceptedFieldConfig():array
    {
        return [
            'type'  => 'string',
            'label' => 'Payment Accepted',
            'hint'  => 'A comma separated list of payment accepted, example: Cash, Credit Card, Cryptocurrency, Local Exchange Tradings System, etc.'
        ];
    }
}