| 1 | <?php |
||
| 9 | class ArticleEvent extends Event |
||
|
|
|||
| 10 | { |
||
| 11 | private $response; |
||
| 12 | private $article; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Constructor. |
||
| 16 | * |
||
| 17 | * @param Article $article |
||
| 18 | */ |
||
| 19 | public function __construct(Article $article) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Get the article. |
||
| 26 | * |
||
| 27 | * @return Article |
||
| 28 | */ |
||
| 29 | public function getArticle() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get response. |
||
| 36 | * |
||
| 37 | * @return Response |
||
| 38 | */ |
||
| 39 | public function getResponse() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Set response. |
||
| 46 | * |
||
| 47 | * @param string $response |
||
| 48 | * |
||
| 49 | * @return $this |
||
| 50 | */ |
||
| 51 | public function setResponse(Response $response) |
||
| 57 | } |
||
| 58 |