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

HowToSection   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A steps() 0 4 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