| 1 | <?php |
||
| 7 | class ArticleCreatedEvent extends Event |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | const ARTICLE_CREATED_EVENT = 'article.created'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var int |
||
| 16 | */ |
||
| 17 | private $id; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $title; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | private $url; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param int $id |
||
| 31 | * @param string $title |
||
| 32 | * @param string $url |
||
| 33 | */ |
||
| 34 | public function __construct($id, $title, $url) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return int |
||
| 43 | */ |
||
| 44 | public function getId() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param int $id |
||
| 51 | * |
||
| 52 | * @return self |
||
| 53 | */ |
||
| 54 | public function setId($id) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | public function getTitle() |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @param string $title |
||
| 71 | * |
||
| 72 | * @return self |
||
| 73 | */ |
||
| 74 | public function setTitle($title) |
||
| 80 | |||
| 81 | /** |
||
| 82 | * @return string |
||
| 83 | */ |
||
| 84 | public function getUrl() |
||
| 88 | |||
| 89 | /** |
||
| 90 | * @param string $url |
||
| 91 | * |
||
| 92 | * @return self |
||
| 93 | */ |
||
| 94 | public function setUrl($url) |
||
| 100 | } |
||
| 101 |