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\Style;
   6  
   7  use OpenSpout\Common\Entity\Style\Style;
   8  
   9  /**
  10   * @internal
  11   */
  12  final class PossiblyUpdatedStyle
  13  {
  14      private Style $style;
  15      private bool $isUpdated;
  16  
  17      public function __construct(Style $style, bool $isUpdated)
  18      {
  19          $this->style = $style;
  20          $this->isUpdated = $isUpdated;
  21      }
  22  
  23      public function getStyle(): Style
  24      {
  25          return $this->style;
  26      }
  27  
  28      public function isUpdated(): bool
  29      {
  30          return $this->isUpdated;
  31      }
  32  }