HaruAnnotation::setIcon()
(PECL haru >= 0.0.1)
Set the icon style of the annotation
说明
HaruAnnotation::setIcon(int $icon): bool
Defines the style of the annotation icon. This function may be used with text annotations only.
参数
- $icon
The style of the icon. Can take only these values:
HaruAnnotation::ICON_COMMENTHaruAnnotation::ICON_KEYHaruAnnotation::ICON_NOTEHaruAnnotation::ICON_HELPHaruAnnotation::ICON_NEW_PARAGRAPHHaruAnnotation::ICON_PARAGRAPHHaruAnnotation::ICON_INSERT
返回值
Returns TRUE on success.
错误/异常
发生错误时抛出HaruException异常。
