<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\Thing\Intangible\ItemList\ItemList;
|
use JVBase\managers\SEO\render\Thing\Intangible\ListItem;
|
use JVBase\managers\SEO\render\Traits\_Helpers\arrayHelper;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait positiveNotesTrait {
|
use arrayHelper;
|
/**
|
* @var ItemList|ListItem|string|array Provides positive considerations regarding something, most typically in pro/con lists for reviews (alongside positiveNotes). For symmetry
|
*
|
* In the case of a Review, the property describes the itemReviewed from the perspective of the review; in the case of a Product, the product itself is being described. Since product positiveNotess tend to emphasise positive claims, it may be relatively unusual to find positiveNotes used in this way. Nevertheless for the sake of symmetry, positiveNotes can be used on Product.
|
*
|
* The property values can be expressed either as unstructured text (repeated as necessary), or if ordered, as a list (in which case the most positive is at the beginning of the list).
|
*/
|
protected ItemList|ListItem|string|array $positiveNotes;
|
|
public function getPositiveNotes():ItemList|ListItem|string|array|null
|
{
|
return $this->positiveNotes??null;
|
}
|
public function setPositiveNotes(ItemList|ListItem|string|array $positiveNotes):void
|
{
|
if (is_array($positiveNotes)) {
|
$positiveNotes = $this->stringArray('positiveNotes', $positiveNotes);
|
}
|
$this->positiveNotes = $positiveNotes;
|
}
|
}
|