<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\Thing\Intangible\StructuredValue\TypeAndQuantityNode;
|
use JVBase\managers\SEO\render\Traits\_Helpers\arrayHelper;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait includesObjectTrait {
|
use arrayHelper;
|
/**
|
* @var TypeAndQuantityNode|array This links to a node or nodes indicating the exact quantity of the products included in an Offer or ProductCollection.
|
*/
|
protected TypeAndQuantityNode|array $includesObject;
|
|
public function getIncludesObject():TypeAndQuantityNode|array|null
|
{
|
return $this->includesObject??null;
|
}
|
public function setIncludesObject(TypeAndQuantityNode|array $includesObject):void
|
{
|
if (is_array($includesObject)) {
|
$includesObject = $this->classArray('includesObject', $includesObject, 'JVBase\managers\SEO\render\Thing\Intangible\StructuredValue\TypeAndQuantityNode');
|
}
|
$this->includesObject = $includesObject;
|
}
|
}
|