Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.
   1  <?php
   2  
   3  declare(strict_types=1);
   4  
   5  namespace OpenSpout\Writer\Common\Manager;
   6  
   7  use OpenSpout\Common\Entity\Style\Style;
   8  
   9  /**
  10   * Allow to know if this style must replace actual row style.
  11   *
  12   * @internal
  13   */
  14  final class RegisteredStyle
  15  {
  16      private Style $style;
  17  
  18      private bool $isMatchingRowStyle;
  19  
  20      public function __construct(Style $style, bool $isMatchingRowStyle)
  21      {
  22          $this->style = $style;
  23          $this->isMatchingRowStyle = $isMatchingRowStyle;
  24      }
  25  
  26      public function getStyle(): Style
  27      {
  28          return $this->style;
  29      }
  30  
  31      public function isMatchingRowStyle(): bool
  32      {
  33          return $this->isMatchingRowStyle;
  34      }
  35  }