public function getScheduledEventName(): string {
$parts = [];
- if (count($this->players) > 1) {
+ if (count($this->players) == 4) {
+ // $parts[] = $this->players[0]->getName().' and '.$this->players[2]->getName().' vs '.$this->players[1]->getName().' and '.$this->players[3]->getName();
+ } elseif (count($this->players) > 1) {
$players = [];
foreach ($this->players as $player) {
$players[] = $player->getName();
}
public function getScheduledEventDescription(): string {
+ $description = '';
+ if (count($this->players) == 4) {
+ $description .= $this->players[0]->getName().' and '.$this->players[2]->getName()
+ .' vs '.$this->players[1]->getName().' and '.$this->players[3]->getName()."\n";
+ }
if ($this->comment != '') {
- return $this->comment;
+ $description .= $this->comment."\n";
}
- return '';
+ return $description;
}
public function getRestreamLink(string $preferred_lang = ''): string {