<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\Traits\_Helpers\arrayHelper;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait colorTrait {
|
use arrayHelper;
|
/**
|
* @var array|string The color of the product.
|
*/
|
protected array|string $color;
|
|
public function getColor():array|string|null
|
{
|
return $this->color??null;
|
}
|
public function setColor(array|string $color):void
|
{
|
if (is_array($color)) {
|
$color = $this->stringArray('color', $color);
|
}
|
$this->color = $color;
|
}
|
}
|