Completed
Push — master ( 530ce9...1b2ae5 )
by Paweł
23:42 queued 20:31
created

HttpCacheEvent::getSubject()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the Superdesk Web Publisher Common Component.
5
 *
6
 * Copyright 2015 Sourcefabric z.u. and contributors.
7
 *
8
 * For the full copyright and license information, please see the
9
 * AUTHORS and LICENSE files distributed with this source code.
10
 *
11
 * @copyright 2015 Sourcefabric z.ú.
12
 * @license http://www.superdesk.org/license
13
 */
14
namespace SWP\Component\Common\Event;
15
16
use Symfony\Component\EventDispatcher\Event;
17
18
class HttpCacheEvent extends Event
19
{
20
    /**
21
     * Event name.
22
     */
23
    const EVENT_NAME = 'swp_http_cache.clear';
24
25
    protected $subject;
26
27
    public function __construct($subject)
28
    {
29
        $this->subject = $subject;
30
    }
31
32
    public function getSubject()
33
    {
34
        return $this->subject;
35
    }
36
}
37