Jake Vanderwerf
9 days ago ed57c386db34d8693ca75311972d0929ebe5f488
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 negativeNotesTrait {
    use arrayHelper;
    /**
     * @var ItemList|ListItem|string|array Provides negative 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 negativeNotess tend to emphasise positive claims, it may be relatively unusual to find negativeNotes used in this way. Nevertheless for the sake of symmetry, negativeNotes 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 negative is at the beginning of the list).
     */
    protected ItemList|ListItem|string|array $negativeNotes;
 
    public function getNegativeNotes():ItemList|ListItem|string|array|null
    {
        return $this->negativeNotes??null;
    }
    public function setNegativeNotes(ItemList|ListItem|string|array $negativeNotes):void
    {
        if (is_array($negativeNotes)) {
            $negativeNotes = $this->stringArray('negativeNotes', $negativeNotes);
        }
        $this->negativeNotes = $negativeNotes;
    }
}