Jake Vanderwerf
10 hours ago 88d9e0e2b7997eb0c96dc737082c91b4e3f7ca6e
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
<?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;
    }
}