<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\Thing\Intangible\Quantity\Mass;
|
use JVBase\managers\SEO\render\Thing\Intangible\StructuredValue\QuantitativeValue;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait weightTrait {
|
/**
|
* @var Mass|QuantitativeValue The weight of the item.
|
*/
|
protected Mass|QuantitativeValue $weight;
|
|
public function getWeight():Mass|QuantitativeValue|null
|
{
|
return $this->weight??null;
|
}
|
public function setWeight(Mass|QuantitativeValue $weight):void
|
{
|
$this->weight = $weight;
|
}
|
}
|