GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — dev ( b4e0b1...5fffd6 )
by Андрей
03:39
created

EntryToObjectsControllerPlugin::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * @link    https://github.com/old-town/workflow-zf2-toolkit
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace OldTown\Workflow\ZF2\Toolkit\EntryToObjects;
7
8
use Zend\Mvc\Controller\Plugin\AbstractPlugin;
9
10
/**
11
 * Class EntryToObjectsControllerPlugin
12
 *
13
 * @package OldTown\Workflow\ZF2\Toolkit\EntryToObjects
14
 */
15
class EntryToObjectsControllerPlugin extends AbstractPlugin
16
{
17
    /**
18
     * Сервис реализующий функционал, для привязки процессов wf и информации о объектах
19
     *
20
     * @var EntryToObjectsService
21
     */
22
    protected $entryToObjectsService;
23
24
    /**
25
     * EntryToObjectsControllerPlugin constructor.
26
     *
27
     * @param array $options
28
     */
29
    public function __construct(array $options = [])
30
    {
31
        $initOptions = [
32
            array_key_exists('entryToObjectsService', $options) ? $options['entryToObjectsService'] : null
33
        ];
34
35
        call_user_func_array([$this, 'init'], $initOptions);
36
    }
37
38
    /**
39
     * @param EntryToObjectsService $entryToObjectsService
40
     */
41
    protected function init(EntryToObjectsService $entryToObjectsService)
42
    {
43
        $this->setEntryToObjectsService($entryToObjectsService);
44
    }
45
46
    /**
47
     * Сервис реализующий функционал, для привязки процессов wf и информации о объектах
48
     *
49
     * @return EntryToObjectsService
50
     */
51
    public function getEntryToObjectsService()
52
    {
53
        return $this->entryToObjectsService;
54
    }
55
56
    /**
57
     * Устанавливает сервис реализующий функционал, для привязки процессов wf и информации о объектах
58
     *
59
     * @param EntryToObjectsService $entryToObjectsService
60
     *
61
     * @return $this
62
     */
63
    public function setEntryToObjectsService(EntryToObjectsService $entryToObjectsService)
64
    {
65
        $this->entryToObjectsService = $entryToObjectsService;
66
67
        return $this;
68
    }
69
70
    /**
71
     * @return EntryToObjectsService
72
     */
73
    public function __invoke()
74
    {
75
        return $this->getEntryToObjectsService();
76
    }
77
}
78