[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/vendor/splitbrain/lesserphp/src/Functions/ -> AbstractFunctionCollection.php (source)

   1  <?php
   2  
   3  namespace LesserPHP\Functions;
   4  
   5  use LesserPHP\Lessc;
   6  
   7  abstract class AbstractFunctionCollection
   8  {
   9      protected Lessc $lessc;
  10  
  11      /**
  12       * Constructor
  13       */
  14      public function __construct(Lessc $lessc)
  15      {
  16          $this->lessc = $lessc;
  17      }
  18  
  19      /**
  20       * Get the functions provided by this collection
  21       *
  22       * @return array [name => callable]
  23       */
  24      abstract public function getFunctions(): array;
  25  }