Completed
Pull Request — master (#4522)
by Craig
13:45
created

OnlineExtension::onlineSince()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 17
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
eloc 11
nc 3
nop 2
dl 0
loc 17
rs 9.9
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Zikula package.
7
 *
8
 * Copyright Zikula - https://ziku.la/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Zikula\UsersModule\Twig\Extension;
15
16
use Twig\Extension\AbstractExtension;
17
use Twig\TwigFilter;
18
use Zikula\UsersModule\Twig\Runtime\OnlineRuntime;
19
20
class OnlineExtension extends AbstractExtension
21
{
22
    public function getFilters()
23
    {
24
        return [
25
            new TwigFilter('onlineSince', [OnlineRuntime::class, 'onlineSince'])
26
        ];
27
    }
28
}
29