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

HowToItem   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A requiredQuantity() 0 4 1
1
<?php
2
3
namespace Spatie\SchemaOrg;
4
5
/**
6
 * An item used as either a tool or supply when performing the instructions for
7
 * how to to achieve a result.
8
 *
9
 * @see http://schema.org/HowToItem
10
 */
11
class HowToItem extends ListItem
12
{
13
    /**
14
     * The required quantity of the item(s).
15
     *
16
     * @param QuantitativeValue|QuantitativeValue[]|float|float[]|int|int[]|string|string[] $requiredQuantity
17
     *
18
     * @return static
19
     *
20
     * @see http://schema.org/requiredQuantity
21
     */
22
    public function requiredQuantity($requiredQuantity)
23
    {
24
        return $this->setProperty('requiredQuantity', $requiredQuantity);
25
    }
26
27
}
28