FeedCleanupEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 26
ccs 0
cts 9
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getFeed() 0 4 1
1
<?php
2
3
namespace TreeHouse\IoBundle\Event;
4
5
use TreeHouse\IoBundle\Entity\Feed;
6
7
class FeedCleanupEvent extends CleanupEvent
8
{
9
    /**
10
     * @var Feed
11
     */
12
    protected $feed;
13
14
    /**
15
     * @param Feed $feed
16
     * @param int  $numCleaned
17
     */
18
    public function __construct(Feed $feed, $numCleaned)
19
    {
20
        parent::__construct($numCleaned);
21
22
        $this->feed = $feed;
23
    }
24
25
    /**
26
     * @return Feed
27
     */
28
    public function getFeed()
29
    {
30
        return $this->feed;
31
    }
32
}
33