ILIAS  release_7 Revision v7.30-3-g800a261c036
AbstractMedia.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
21
26abstract class AbstractMedia
27{
31 protected $content = "";
32
36 protected $version = '';
37
42 public function __construct(string $content, string $version)
43 {
44 $this->content = $content;
45 $this->version = $version;
46 }
47
51 public function getContent() : string
52 {
53 return $this->content;
54 }
55}
An exception for terminatinating execution or to throw for unit testing.
__construct(string $content, string $version)
AbstractMedia constructor.