Completed
Pull Request — master (#79)
by
unknown
15:15
created

ConsumeAction::expectsAcceptanceOf()   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
 * The act of ingesting information/resources/food.
7
 *
8
 * @see http://schema.org/ConsumeAction
9
 *
10
 * @mixin \Spatie\SchemaOrg\Action
11
 */
12
class ConsumeAction extends BaseType
13
{
14
    /**
15
     * A set of requirements that a must be fulfilled in order to perform an
16
     * Action. If more than one value is specied, fulfilling one set of
17
     * requirements will allow the Action to be performed.
18
     *
19
     * @param ActionAccessSpecification|ActionAccessSpecification[] $actionAccessibilityRequirement
20
     *
21
     * @return static
22
     *
23
     * @see http://schema.org/actionAccessibilityRequirement
24
     */
25
    public function actionAccessibilityRequirement($actionAccessibilityRequirement)
26
    {
27
        return $this->setProperty('actionAccessibilityRequirement', $actionAccessibilityRequirement);
28
    }
29
30
    /**
31
     * An Offer which must be accepted before the user can perform the Action.
32
     * For example, the user may need to buy a movie before being able to watch
33
     * it.
34
     *
35
     * @param Offer|Offer[] $expectsAcceptanceOf
36
     *
37
     * @return static
38
     *
39
     * @see http://schema.org/expectsAcceptanceOf
40
     */
41
    public function expectsAcceptanceOf($expectsAcceptanceOf)
42
    {
43
        return $this->setProperty('expectsAcceptanceOf', $expectsAcceptanceOf);
44
    }
45
46
}
47