Skip to content

Commit ac09958

Browse files
author
Jérôme Deuchnord
committed
Remove $method field and rename $controllerResult to $data
1 parent 33de54c commit ac09958

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

src/Event/PreWriteEvent.php

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,20 @@
1818
final class PreWriteEvent extends Event
1919
{
2020
const NAME = Events::PRE_WRITE;
21-
private $method;
22-
private $controllerResult;
21+
private $data;
2322

24-
public function __construct(string $method, $controllerResult)
23+
public function __construct($data)
2524
{
26-
$this->method = $method;
27-
$this->controllerResult = $controllerResult;
25+
$this->data = $data;
2826
}
2927

30-
public function getMethod(): string
28+
public function getData()
3129
{
32-
return $this->method;
30+
return $this->data;
3331
}
3432

35-
public function setMethod(string $method): void
33+
public function setData($data): void
3634
{
37-
$this->method = $method;
38-
}
39-
40-
public function getControllerResult()
41-
{
42-
return $this->controllerResult;
43-
}
44-
45-
public function setControllerResult($controllerResult): void
46-
{
47-
$this->controllerResult = $controllerResult;
35+
$this->data = $data;
4836
}
4937
}

0 commit comments

Comments
 (0)