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