1 | <?php |
||
15 | class Message |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $message; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $link; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $pictureLink; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | private $caption; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | private $description; |
||
41 | |||
42 | /** |
||
43 | * @var array |
||
44 | * @see SocialNetwork::ANY List of available networks |
||
45 | */ |
||
46 | private $networksToPublishOn = [SocialNetwork::ANY]; |
||
47 | |||
48 | /** |
||
49 | * @param string $message The main message |
||
50 | * @param string $link Optional link to a webpage to display along the message |
||
51 | * @param string $pictureLink Optional address of a picture to display along the message |
||
52 | * @param string $caption Optional caption to display along the message |
||
53 | * @param string $description Optional description to display along the message |
||
54 | */ |
||
55 | public function __construct( |
||
68 | |||
69 | /** |
||
70 | * @return string |
||
71 | */ |
||
72 | public function getMessage(): string |
||
76 | |||
77 | /** |
||
78 | * @return string |
||
79 | */ |
||
80 | public function getLink(): string |
||
84 | |||
85 | /** |
||
86 | * @return string |
||
87 | */ |
||
88 | public function getPictureLink(): string |
||
92 | |||
93 | /** |
||
94 | * @return string |
||
95 | */ |
||
96 | public function getCaption(): string |
||
100 | |||
101 | /** |
||
102 | * @return string |
||
103 | */ |
||
104 | public function getDescription(): string |
||
108 | |||
109 | /** |
||
110 | * @return Message |
||
111 | */ |
||
112 | public function setNetworksToPublishOn(array $networksToPublishOn): Message |
||
118 | |||
119 | /** |
||
120 | * @return array |
||
121 | */ |
||
122 | public function getNetworksToPublishOn(): array |
||
126 | } |
||
127 |