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

MediaSubscription   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A authenticator() 0 4 1
A expectsAcceptanceOf() 0 4 1
1
<?php
2
3
namespace Spatie\SchemaOrg;
4
5
/**
6
 * A subscription which allows a user to access media including audio, video,
7
 * books, etc.
8
 *
9
 * @see http://schema.org/MediaSubscription
10
 *
11
 * @mixin \Spatie\SchemaOrg\Intangible
12
 */
13
class MediaSubscription extends BaseType
14
{
15
    /**
16
     * The Organization responsible for authenticating the user's subscription.
17
     * For example, many media apps require a cable/satellite provider to
18
     * authenticate your subscription before playing media.
19
     *
20
     * @param Organization|Organization[] $authenticator
21
     *
22
     * @return static
23
     *
24
     * @see http://schema.org/authenticator
25
     */
26
    public function authenticator($authenticator)
27
    {
28
        return $this->setProperty('authenticator', $authenticator);
29
    }
30
31
    /**
32
     * 
33
     *
34
     * @param  $expectsAcceptanceOf
35
     *
36
     * @return static
37
     *
38
     * @see http://schema.org/expectsAcceptanceOf
39
     */
40
    public function expectsAcceptanceOf($expectsAcceptanceOf)
41
    {
42
        return $this->setProperty('expectsAcceptanceOf', $expectsAcceptanceOf);
43
    }
44
45
}
46