ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
HasContentLanguage.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
26{
27 protected ?LanguageTag $content_language = null;
28
29 public function withContentLanguage(LanguageTag $content_language): self
30 {
31 $clone = clone $this;
32 $clone->content_language = $content_language;
33 return $clone;
34 }
35
36 public function getContentLanguage(): ?LanguageTag
37 {
38 return $this->content_language;
39 }
40}
This class represents a valid language tag that should be used instead of plain strings.
Definition: LanguageTag.php:40
withContentLanguage(LanguageTag $content_language)