<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
use JVBase\managers\SEO\render\Thing\Organization\Organization;
|
use JVBase\managers\SEO\render\Thing\Person\Person;
|
use JVBase\managers\SEO\render\Traits\_Helpers\arrayHelper;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait maintainerTrait {
|
use arrayHelper;
|
/**
|
* @var Organization|Person|array A maintainer of a Dataset, software package (SoftwareApplication), or other Project. A maintainer is a Person or Organization that manages contributions to, and/or publication of, some (typically complex) artifact. It is common for distributions of software and data to be based on "upstream" sources. When maintainer is applied to a specific version of something e.g. a particular version or packaging of a Dataset, it is always possible that the upstream source has a different maintainer. The isBasedOn property can be used to indicate such relationships between datasets to make the different maintenance roles clear. Similarly in the case of software, a package may have dedicated maintainers working on integration into software distributions such as Ubuntu, as well as upstream maintainers of the underlying work.
|
*/
|
protected Organization|Person|array $maintainer;
|
|
public function getMaintainer():Organization|Person|array|null
|
{
|
return $this->maintainer??null;
|
}
|
public function setMaintainer(Organization|Person|array $maintainer):void
|
{
|
if (is_array($maintainer)) {
|
$maintainer = $this->mixedArray('maintainer', $maintainer, [
|
'JVBase\managers\SEO\render\Thing\Organization\Organization',
|
'JVBase\managers\SEO\render\Thing\Person\Person'
|
]);
|
}
|
$this->maintainer = $maintainer;
|
}
|
}
|