Completed
Pull Request — develop (#274)
by
unknown
09:44
created

DependencyModule::removeItems()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 2
rs 10
cc 1
eloc 1
nc 1
nop 1
1
<?php
2
/**
3
 * @filesource
4
 * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
5
 * @license MIT
6
 * @author Miroslav Fedeleš <[email protected]>
7
 * @since 0.27
8
 */
9
10
namespace Applications\Auth;
11
12
use Zend\I18n\Translator\TranslatorInterface as Translator;
13
use Auth\Entity\UserInterface as User;
14
use Zend\Mvc\Router\RouteInterface as Router;
15
use Auth\Dependency\ModuleInterface;
16
use Auth\Dependency\ModuleItem;
17
18
class DependencyModule implements ModuleInterface
19
{
20
21
    /**
22
     * @see \Auth\Dependency\ModuleInterface::getTitle()
23
     */
24
    public function getTitle(Translator $translator)
25
    {
26
        return $translator->translate('Applications');
27
    }
28
29
    /**
30
     * @see \Auth\Dependency\ModuleInterface::getCount()
31
     */
32
    public function getCount(User $user)
33
    {
34
        return 1;
35
    }
36
37
    /**
38
     * @see \Auth\Dependency\ModuleInterface::getItems()
39
     */
40
    public function getItems(User $user, Router $router)
41
    {
42
        return [
43
            new ModuleItem('Another', $router->assemble(['id' => 'another'], ['name' => 'lang/applications/detail']))
44
        ];
45
    }
46
    
47
    /**
48
     * @see \Auth\Dependency\ModuleInterface::removeItems()
49
     */
50
    public function removeItems(User $user)
51
    {}
52
}
53