Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.
   1  <?php
   2  
   3  namespace PhpOffice\PhpSpreadsheet\Calculation\Financial;
   4  
   5  class Constants
   6  {
   7      public const BASIS_DAYS_PER_YEAR_NASD = 0;
   8      public const BASIS_DAYS_PER_YEAR_ACTUAL = 1;
   9      public const BASIS_DAYS_PER_YEAR_360 = 2;
  10      public const BASIS_DAYS_PER_YEAR_365 = 3;
  11      public const BASIS_DAYS_PER_YEAR_360_EUROPEAN = 4;
  12  
  13      public const FREQUENCY_ANNUAL = 1;
  14      public const FREQUENCY_SEMI_ANNUAL = 2;
  15      public const FREQUENCY_QUARTERLY = 4;
  16  
  17      public const PAYMENT_END_OF_PERIOD = 0;
  18      public const PAYMENT_BEGINNING_OF_PERIOD = 1;
  19  }