PostFetchEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
namespace Netdudes\DataSourceryBundle\DataSource\Driver\Doctrine\Events;
3
4
use Netdudes\DataSourceryBundle\DataSource\DataSourceInterface;
5
use Symfony\Component\EventDispatcher\Event;
6
7
class PostFetchEvent extends Event
8
{
9
    public $data;
10
11
    /**
12
     * @var DataSourceInterface
13
     */
14
    public $dataSource;
15
16
    public function __construct(DataSourceInterface $dataSource, $rows)
17
    {
18
        $this->data = $rows;
19
        $this->dataSource = $dataSource;
20
    }
21
}
22