Completed
Push — master ( 91a776...8c22b7 )
by Sebastian
07:46 queued 02:57
created

HowToSection::steps()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Spatie\SchemaOrg;
4
5
/**
6
 * A sub-grouping of steps in the instructions for how to achieve a result (e.g.
7
 * steps for making a pie crust within a pie recipe).
8
 *
9
 * @see http://schema.org/HowToSection
10
 */
11
class HowToSection extends ItemList
12
{
13
    /**
14
     * A single step item (as HowToStep, text, document, video, etc.) or a
15
     * HowToSection (originally misnamed 'steps'; 'step' is preferred).
16
     *
17
     * @param CreativeWork|CreativeWork[]|ItemList|ItemList[]|string|string[] $steps
18
     *
19
     * @return static
20
     *
21
     * @see http://schema.org/steps
22
     */
23
    public function steps($steps)
24
    {
25
        return $this->setProperty('steps', $steps);
26
    }
27
28
}
29