@@ 30-69 (lines=40) @@ | ||
27 | * |
|
28 | * @author Adam Kadlec <[email protected]> |
|
29 | */ |
|
30 | final class DisableEvent extends EventDispatcher\Event |
|
31 | { |
|
32 | /** |
|
33 | * @var Packages\PackagesManager |
|
34 | */ |
|
35 | private $manager; |
|
36 | ||
37 | /** |
|
38 | * @var Entities\IPackage |
|
39 | */ |
|
40 | private $package; |
|
41 | ||
42 | /** |
|
43 | * @param Packages\PackagesManager $manager |
|
44 | * @param Entities\IPackage $package |
|
45 | */ |
|
46 | public function __construct( |
|
47 | Packages\PackagesManager $manager, |
|
48 | Entities\IPackage $package |
|
49 | ) { |
|
50 | $this->manager = $manager; |
|
51 | $this->package = $package; |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @return Packages\PackagesManager |
|
56 | */ |
|
57 | public function getManager() : Packages\PackagesManager |
|
58 | { |
|
59 | return $this->manager; |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * @return Entities\IPackage |
|
64 | */ |
|
65 | public function getPackage() : Entities\IPackage |
|
66 | { |
|
67 | return $this->package; |
|
68 | } |
|
69 | } |
|
70 |
@@ 30-69 (lines=40) @@ | ||
27 | * |
|
28 | * @author Adam Kadlec <[email protected]> |
|
29 | */ |
|
30 | final class EnableEvent extends EventDispatcher\Event |
|
31 | { |
|
32 | /** |
|
33 | * @var Packages\PackagesManager |
|
34 | */ |
|
35 | private $manager; |
|
36 | ||
37 | /** |
|
38 | * @var Entities\IPackage |
|
39 | */ |
|
40 | private $package; |
|
41 | ||
42 | /** |
|
43 | * @param Packages\PackagesManager $manager |
|
44 | * @param Entities\IPackage $package |
|
45 | */ |
|
46 | public function __construct( |
|
47 | Packages\PackagesManager $manager, |
|
48 | Entities\IPackage $package |
|
49 | ) { |
|
50 | $this->manager = $manager; |
|
51 | $this->package = $package; |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @return Packages\PackagesManager |
|
56 | */ |
|
57 | public function getManager() : Packages\PackagesManager |
|
58 | { |
|
59 | return $this->manager; |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * @return Entities\IPackage |
|
64 | */ |
|
65 | public function getPackage() : Entities\IPackage |
|
66 | { |
|
67 | return $this->package; |
|
68 | } |
|
69 | } |
|
70 |
@@ 30-69 (lines=40) @@ | ||
27 | * |
|
28 | * @author Adam Kadlec <[email protected]> |
|
29 | */ |
|
30 | final class InstallEvent extends EventDispatcher\Event |
|
31 | { |
|
32 | /** |
|
33 | * @var Packages\PackagesManager |
|
34 | */ |
|
35 | private $manager; |
|
36 | ||
37 | /** |
|
38 | * @var Entities\IPackage |
|
39 | */ |
|
40 | private $package; |
|
41 | ||
42 | /** |
|
43 | * @param Packages\PackagesManager $manager |
|
44 | * @param Entities\IPackage $package |
|
45 | */ |
|
46 | public function __construct( |
|
47 | Packages\PackagesManager $manager, |
|
48 | Entities\IPackage $package |
|
49 | ) { |
|
50 | $this->manager = $manager; |
|
51 | $this->package = $package; |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @return Packages\PackagesManager |
|
56 | */ |
|
57 | public function getManager() : Packages\PackagesManager |
|
58 | { |
|
59 | return $this->manager; |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * @return Entities\IPackage |
|
64 | */ |
|
65 | public function getPackage() : Entities\IPackage |
|
66 | { |
|
67 | return $this->package; |
|
68 | } |
|
69 | } |
|
70 |
@@ 30-69 (lines=40) @@ | ||
27 | * |
|
28 | * @author Adam Kadlec <[email protected]> |
|
29 | */ |
|
30 | final class RegisterEvent extends EventDispatcher\Event |
|
31 | { |
|
32 | /** |
|
33 | * @var Packages\PackagesManager |
|
34 | */ |
|
35 | private $manager; |
|
36 | ||
37 | /** |
|
38 | * @var Entities\IPackage |
|
39 | */ |
|
40 | private $package; |
|
41 | ||
42 | /** |
|
43 | * @param Packages\PackagesManager $manager |
|
44 | * @param Entities\IPackage $package |
|
45 | */ |
|
46 | public function __construct( |
|
47 | Packages\PackagesManager $manager, |
|
48 | Entities\IPackage $package |
|
49 | ) { |
|
50 | $this->manager = $manager; |
|
51 | $this->package = $package; |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @return Packages\PackagesManager |
|
56 | */ |
|
57 | public function getManager() : Packages\PackagesManager |
|
58 | { |
|
59 | return $this->manager; |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * @return Entities\IPackage |
|
64 | */ |
|
65 | public function getPackage() : Entities\IPackage |
|
66 | { |
|
67 | return $this->package; |
|
68 | } |
|
69 | } |
|
70 |
@@ 30-69 (lines=40) @@ | ||
27 | * |
|
28 | * @author Adam Kadlec <[email protected]> |
|
29 | */ |
|
30 | final class UninstallEvent extends EventDispatcher\Event |
|
31 | { |
|
32 | /** |
|
33 | * @var Packages\PackagesManager |
|
34 | */ |
|
35 | private $manager; |
|
36 | ||
37 | /** |
|
38 | * @var Entities\IPackage |
|
39 | */ |
|
40 | private $package; |
|
41 | ||
42 | /** |
|
43 | * @param Packages\PackagesManager $manager |
|
44 | * @param Entities\IPackage $package |
|
45 | */ |
|
46 | public function __construct( |
|
47 | Packages\PackagesManager $manager, |
|
48 | Entities\IPackage $package |
|
49 | ) { |
|
50 | $this->manager = $manager; |
|
51 | $this->package = $package; |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @return Packages\PackagesManager |
|
56 | */ |
|
57 | public function getManager() : Packages\PackagesManager |
|
58 | { |
|
59 | return $this->manager; |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * @return Entities\IPackage |
|
64 | */ |
|
65 | public function getPackage() : Entities\IPackage |
|
66 | { |
|
67 | return $this->package; |
|
68 | } |
|
69 | } |
|
70 |
@@ 30-69 (lines=40) @@ | ||
27 | * |
|
28 | * @author Adam Kadlec <[email protected]> |
|
29 | */ |
|
30 | final class UnregisterEvent extends EventDispatcher\Event |
|
31 | { |
|
32 | /** |
|
33 | * @var Packages\PackagesManager |
|
34 | */ |
|
35 | private $manager; |
|
36 | ||
37 | /** |
|
38 | * @var Entities\IPackage |
|
39 | */ |
|
40 | private $package; |
|
41 | ||
42 | /** |
|
43 | * @param Packages\PackagesManager $manager |
|
44 | * @param Entities\IPackage $package |
|
45 | */ |
|
46 | public function __construct( |
|
47 | Packages\PackagesManager $manager, |
|
48 | Entities\IPackage $package |
|
49 | ) { |
|
50 | $this->manager = $manager; |
|
51 | $this->package = $package; |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @return Packages\PackagesManager |
|
56 | */ |
|
57 | public function getManager() : Packages\PackagesManager |
|
58 | { |
|
59 | return $this->manager; |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * @return Entities\IPackage |
|
64 | */ |
|
65 | public function getPackage() : Entities\IPackage |
|
66 | { |
|
67 | return $this->package; |
|
68 | } |
|
69 | } |
|
70 |
@@ 30-69 (lines=40) @@ | ||
27 | * |
|
28 | * @author Adam Kadlec <[email protected]> |
|
29 | */ |
|
30 | final class UpgradeEvent extends EventDispatcher\Event |
|
31 | { |
|
32 | /** |
|
33 | * @var Packages\PackagesManager |
|
34 | */ |
|
35 | private $manager; |
|
36 | ||
37 | /** |
|
38 | * @var Entities\IPackage |
|
39 | */ |
|
40 | private $package; |
|
41 | ||
42 | /** |
|
43 | * @param Packages\PackagesManager $manager |
|
44 | * @param Entities\IPackage $package |
|
45 | */ |
|
46 | public function __construct( |
|
47 | Packages\PackagesManager $manager, |
|
48 | Entities\IPackage $package |
|
49 | ) { |
|
50 | $this->manager = $manager; |
|
51 | $this->package = $package; |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * @return Packages\PackagesManager |
|
56 | */ |
|
57 | public function getManager() : Packages\PackagesManager |
|
58 | { |
|
59 | return $this->manager; |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * @return Entities\IPackage |
|
64 | */ |
|
65 | public function getPackage() : Entities\IPackage |
|
66 | { |
|
67 | return $this->package; |
|
68 | } |
|
69 | } |
|
70 |