nur-sery/nur_src/b/coll/TArrayMdBasic.php

16 lines
294 B
PHP
Raw Normal View History

2023-12-03 22:10:18 +04:00
<?php
namespace nur\b\coll;
use nur\data\types\Metadata;
/**
* Trait TArrayMdBasic: implémentation par défaut
*/
trait TArrayMdBasic {
protected function md(): ?Metadata {
$schema = static::SCHEMA;
if ($schema === null) return null;
else return new Metadata($schema);
}
}