accessor for NoticeListItem's Notice

This commit is contained in:
Evan Prodromou 2012-03-07 16:06:50 -06:00
parent 6e01db2c92
commit 12921d6b71

View File

@ -720,4 +720,17 @@ class NoticeListItem extends Widget
Event::handle('EndCloseNoticeListItemElement', array($this));
}
}
/**
* Get the notice in question
*
* For hooks, etc., this may be useful
*
* @return Notice The notice we're showing
*/
function getNotice()
{
return $this->notice;
}
}