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

Message::toRecipient()   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 single message from a sender to one or more organizations or people.
7
 *
8
 * @see http://schema.org/Message
9
 */
10
class Message extends CreativeWork
11
{
12
    /**
13
     * A sub property of recipient. The recipient blind copied on a message.
14
     *
15
     * @param ContactPoint|ContactPoint[]|Organization|Organization[]|Person|Person[] $bccRecipient
16
     *
17
     * @return static
18
     *
19
     * @see http://schema.org/bccRecipient
20
     */
21
    public function bccRecipient($bccRecipient)
22
    {
23
        return $this->setProperty('bccRecipient', $bccRecipient);
24
    }
25
26
    /**
27
     * A sub property of recipient. The recipient copied on a message.
28
     *
29
     * @param ContactPoint|ContactPoint[]|Organization|Organization[]|Person|Person[] $ccRecipient
30
     *
31
     * @return static
32
     *
33
     * @see http://schema.org/ccRecipient
34
     */
35
    public function ccRecipient($ccRecipient)
36
    {
37
        return $this->setProperty('ccRecipient', $ccRecipient);
38
    }
39
40
    /**
41
     * The date/time at which the message has been read by the recipient if a
42
     * single recipient exists.
43
     *
44
     * @param \DateTimeInterface|\DateTimeInterface[] $dateRead
45
     *
46
     * @return static
47
     *
48
     * @see http://schema.org/dateRead
49
     */
50
    public function dateRead($dateRead)
51
    {
52
        return $this->setProperty('dateRead', $dateRead);
53
    }
54
55
    /**
56
     * The date/time the message was received if a single recipient exists.
57
     *
58
     * @param \DateTimeInterface|\DateTimeInterface[] $dateReceived
59
     *
60
     * @return static
61
     *
62
     * @see http://schema.org/dateReceived
63
     */
64
    public function dateReceived($dateReceived)
65
    {
66
        return $this->setProperty('dateReceived', $dateReceived);
67
    }
68
69
    /**
70
     * The date/time at which the message was sent.
71
     *
72
     * @param \DateTimeInterface|\DateTimeInterface[] $dateSent
73
     *
74
     * @return static
75
     *
76
     * @see http://schema.org/dateSent
77
     */
78
    public function dateSent($dateSent)
79
    {
80
        return $this->setProperty('dateSent', $dateSent);
81
    }
82
83
    /**
84
     * A CreativeWork attached to the message.
85
     *
86
     * @param CreativeWork|CreativeWork[] $messageAttachment
87
     *
88
     * @return static
89
     *
90
     * @see http://schema.org/messageAttachment
91
     */
92
    public function messageAttachment($messageAttachment)
93
    {
94
        return $this->setProperty('messageAttachment', $messageAttachment);
95
    }
96
97
    /**
98
     * A sub property of participant. The participant who is at the receiving
99
     * end of the action.
100
     *
101
     * @param Audience|Audience[]|ContactPoint|ContactPoint[]|Organization|Organization[]|Person|Person[] $recipient
102
     *
103
     * @return static
104
     *
105
     * @see http://schema.org/recipient
106
     */
107
    public function recipient($recipient)
108
    {
109
        return $this->setProperty('recipient', $recipient);
110
    }
111
112
    /**
113
     * A sub property of participant. The participant who is at the sending end
114
     * of the action.
115
     *
116
     * @param Audience|Audience[]|Organization|Organization[]|Person|Person[] $sender
117
     *
118
     * @return static
119
     *
120
     * @see http://schema.org/sender
121
     */
122
    public function sender($sender)
123
    {
124
        return $this->setProperty('sender', $sender);
125
    }
126
127
    /**
128
     * A sub property of recipient. The recipient who was directly sent the
129
     * message.
130
     *
131
     * @param Audience|Audience[]|ContactPoint|ContactPoint[]|Organization|Organization[]|Person|Person[] $toRecipient
132
     *
133
     * @return static
134
     *
135
     * @see http://schema.org/toRecipient
136
     */
137
    public function toRecipient($toRecipient)
138
    {
139
        return $this->setProperty('toRecipient', $toRecipient);
140
    }
141
142
}
143