FeedCleanupEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 2
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