2020-05-16 17:14:17 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace OCA\BigBlueButton\BigBlueButton;
|
|
|
|
|
2020-06-19 09:28:58 +02:00
|
|
|
class Presentation {
|
2020-05-16 17:14:17 +02:00
|
|
|
private $url;
|
|
|
|
|
|
|
|
private $filename;
|
|
|
|
|
2020-06-19 09:28:58 +02:00
|
|
|
public function __construct(string $url, string $filename) {
|
2020-05-16 17:14:17 +02:00
|
|
|
$this->url = $url;
|
|
|
|
$this->filename = $filename;
|
|
|
|
}
|
|
|
|
|
2021-02-24 15:23:26 +01:00
|
|
|
public function getUrl(): string {
|
2020-05-16 17:14:17 +02:00
|
|
|
return $this->url;
|
|
|
|
}
|
|
|
|
|
2021-02-24 15:23:26 +01:00
|
|
|
public function getFilename(): string {
|
2020-05-16 17:14:17 +02:00
|
|
|
return $this->filename;
|
|
|
|
}
|
|
|
|
|
2021-02-24 15:23:26 +01:00
|
|
|
public function isValid(): bool {
|
2020-05-16 17:14:17 +02:00
|
|
|
return !empty($this->url) && !empty($this->filename);
|
|
|
|
}
|
|
|
|
}
|