Signed-off-by: Roland Haeder <roland@mxchange.org>
*
* @param NoticeListItem $nli item to wrap
*/
- function __construct($nli)
+ function __construct(NoticeListItem $nli)
{
$this->nli = $nli;
}
return false;
}
- function onEndShowNoticeOptionItems(NoticeListItem $nli)
+ function onEndShowNoticeOptionItems($nli)
{
+ // FIXME: Cannot use type-hint NoticeListItem as NoticeListItemAdapter exists, too!
+ assert(is_object($nli));
+
$profile = Profile::current();
if (!empty($profile) && $profile->hasRight(self::TRAINSPAM)) {
*
* @return void
*/
- public function onEndShowNoticeOptionItems(NoticeListItem $nli)
+ public function onEndShowNoticeOptionItems($nli)
{
+ // FIXME: Cannot use type-hint NoticeListItem as NoticeListItemAdapter exists, too!
+ assert(is_object($nli));
+
// FIXME: Use bitmasks (but be aware that PUBLIC_SCOPE is 0!)
// Also: AHHH, $scope and $scoped are scarily similar looking.
$scope = $nli->notice->getScope();