Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.
   1  <?php
   2  
   3  declare(strict_types=1);
   4  
   5  namespace OpenSpout\Common\Entity\Comment;
   6  
   7  /**
   8   * This class defines rich text in a fluent interface that can be added to a comment.
   9   */
  10  final class TextRun
  11  {
  12      public string $text;
  13      public int $fontSize = 10;
  14      public string $fontColor = '000000';
  15      public string $fontName = 'Tahoma';
  16      public bool $bold = false;
  17      public bool $italic = false;
  18  
  19      public function __construct(string $text)
  20      {
  21          $this->text = $text;
  22      }
  23  }