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

HttpCacheEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 19
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getSubject() 0 4 1
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