summaryrefslogtreecommitdiff
path: root/src/Controllers/BaseController.php
blob: 655ed759a5fd23bb672e873c94c710528b9d5e44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

namespace Engelsystem\Controllers;

use Engelsystem\Http\Validation\ValidatesRequest;

abstract class BaseController
{
    use ValidatesRequest;

    /** @var string[]|string[][] A list of Permissions required to access the controller or certain pages */
    protected $permissions = [];

    /**
     * Returns the list of permissions
     *
     * @return string[]|string[][]
     */
    public function getPermissions()
    {
        return $this->permissions;
    }
}