Jake Vanderwerf
2026-05-03 9bbeea742424837fb58207d88e10dbca0b2cae04
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
<?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;
    }
}