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 — master ( d0f959...4966aa )
by Hong
06:20
created

EventQueue::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Phossa Project
4
 *
5
 * PHP version 5.4
6
 *
7
 * @category  Library
8
 * @package   Phossa2\Event
9
 * @copyright Copyright (c) 2016 phossa.com
10
 * @license   http://mit-license.org/ MIT License
11
 * @link      http://www.phossa.com/
12
 */
13
/*# declare(strict_types=1); */
14
15
namespace Phossa2\Event;
16
17
use Phossa2\Shared\Base\ObjectAbstract;
18
use Phossa2\Shared\Queue\PriorityQueueTrait;
19
use Phossa2\Event\Interfaces\EventQueueInterface;
20
21
/**
22
 * EventQueue
23
 *
24
 * One implementation of EventQueueInterface with priority queue
25
 *
26
 * ```php
27
 * // create a new queue
28
 * $queue = new EventQueue();
29
 *
30
 * // insert a callable
31
 * $queue->insert($callable, 50);
32
 *
33
 * // count handlers in the queue
34
 * if (count($queue) > 0) {
35
 *     // loop thru the queue
36
 *     foreach ($queue as $q) {
37
 *         $callable = $q['data'];
38
 *         $priority = $q['priority'];
39
 *     }
40
 * }
41
 *
42
 * // remove callable
43
 * $queue->remove($callable);
44
 *
45
 * // merge with another queue
46
 * $nqueue = $queue->combine($another_queue);
47
 *
48
 * // flush (empty)
49
 * $queue->flush();
50
 * ```
51
 *
52
 * @package Phossa2\Event
53
 * @author  Hong Zhang <[email protected]>
54
 * @see     ObjectAbstract
55
 * @see     EventQueueInterface
56
 * @version 2.1.0
57
 * @since   2.0.0 added
58
 * @since   2.1.0 used updated interface
59
 * @since   2.1.2 using PriorityQueueTrait now
60
 */
61
class EventQueue extends ObjectAbstract implements EventQueueInterface
62
{
63
    use PriorityQueueTrait;
64
}