Completed
Push — master ( fd0635...f2796c )
by Tom
06:08
created

Dataset::temporal()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Spatie\SchemaOrg;
4
5
/**
6
 * A body of structured information describing some topic(s) of interest.
7
 *
8
 * @see http://schema.org/Dataset
9
 *
10
 * @mixin \Spatie\SchemaOrg\CreativeWork
11
 */
12
class Dataset extends BaseType
13
{
14
    /**
15
     * A data catalog which contains this dataset.
16
     *
17
     * @param DataCatalog|DataCatalog[] $catalog
18
     *
19
     * @return static
20
     *
21
     * @see http://schema.org/catalog
22
     */
23
    public function catalog($catalog)
24
    {
25
        return $this->setProperty('catalog', $catalog);
26
    }
27
28
    /**
29
     * The range of temporal applicability of a dataset, e.g. for a 2011 census
30
     * dataset, the year 2011 (in ISO 8601 time interval format).
31
     *
32
     * @param \DateTimeInterface|\DateTimeInterface[] $datasetTimeInterval
33
     *
34
     * @return static
35
     *
36
     * @see http://schema.org/datasetTimeInterval
37
     */
38
    public function datasetTimeInterval($datasetTimeInterval)
39
    {
40
        return $this->setProperty('datasetTimeInterval', $datasetTimeInterval);
41
    }
42
43
    /**
44
     * A downloadable form of this dataset, at a specific location, in a
45
     * specific format.
46
     *
47
     * @param DataDownload|DataDownload[] $distribution
48
     *
49
     * @return static
50
     *
51
     * @see http://schema.org/distribution
52
     */
53
    public function distribution($distribution)
54
    {
55
        return $this->setProperty('distribution', $distribution);
56
    }
57
58
    /**
59
     * A data catalog which contains this dataset (this property was previously
60
     * 'catalog', preferred name is now 'includedInDataCatalog').
61
     *
62
     * @param DataCatalog|DataCatalog[] $includedDataCatalog
63
     *
64
     * @return static
65
     *
66
     * @see http://schema.org/includedDataCatalog
67
     */
68
    public function includedDataCatalog($includedDataCatalog)
69
    {
70
        return $this->setProperty('includedDataCatalog', $includedDataCatalog);
71
    }
72
73
    /**
74
     * A data catalog which contains this dataset.
75
     *
76
     * @param DataCatalog|DataCatalog[] $includedInDataCatalog
77
     *
78
     * @return static
79
     *
80
     * @see http://schema.org/includedInDataCatalog
81
     */
82
    public function includedInDataCatalog($includedInDataCatalog)
83
    {
84
        return $this->setProperty('includedInDataCatalog', $includedInDataCatalog);
85
    }
86
87
    /**
88
     * The International Standard Serial Number (ISSN) that identifies this
89
     * serial publication. You can repeat this property to identify different
90
     * formats of, or the linking ISSN (ISSN-L) for, this serial publication.
91
     *
92
     * @param string|string[] $issn
93
     *
94
     * @return static
95
     *
96
     * @see http://schema.org/issn
97
     */
98
    public function issn($issn)
99
    {
100
        return $this->setProperty('issn', $issn);
101
    }
102
103
}
104