Completed
Push — master ( ab8175...d69783 )
by Kamil
15s
created

FixtureEvent::fixture()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
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 Sylius package.
5
 *
6
 * (c) Paweł Jędrzejewski
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Sylius\Bundle\FixturesBundle\Listener;
13
14
use Sylius\Bundle\FixturesBundle\Fixture\FixtureInterface;
15
use Sylius\Bundle\FixturesBundle\Suite\SuiteInterface;
16
17
/**
18
 * @author Kamil Kokot <[email protected]>
19
 */
20
final class FixtureEvent
21
{
22
    /**
23
     * @var SuiteInterface
24
     */
25
    private $suite;
26
27
    /**
28
     * @var FixtureInterface
29
     */
30
    private $fixture;
31
32
    /**
33
     * @var array
34
     */
35
    private $fixtureOptions;
36
37
    /**
38
     * @param SuiteInterface $suite
39
     * @param FixtureInterface $fixture
40
     * @param array $fixtureOptions
41
     */
42
    public function __construct(SuiteInterface $suite, FixtureInterface $fixture, array $fixtureOptions)
43
    {
44
        $this->suite = $suite;
45
        $this->fixture = $fixture;
46
        $this->fixtureOptions = $fixtureOptions;
47
    }
48
49
    /**
50
     * @return SuiteInterface
51
     */
52
    public function suite()
53
    {
54
        return $this->suite;
55
    }
56
57
    /**
58
     * @return FixtureInterface
59
     */
60
    public function fixture()
61
    {
62
        return $this->fixture;
63
    }
64
65
    /**
66
     * @return array
67
     */
68
    public function fixtureOptions()
69
    {
70
        return $this->fixtureOptions;
71
    }
72
}
73