* Succinct helper method to wrap a StatusValue
*
* This is is useful when formatting StatusValue objects:
- * <code>
+ * @code
* $this->getOutput()->addHtml( Status::wrap( $sv )->getHTML() );
- * </code>
+ * @endcode
*
* @param StatusValue|Status $sv
* @return Status
*/
function __get( $name ) {
if ( $name === 'ok' ) {
- return $this->sv->getOK();
+ return $this->sv->isOK();
} elseif ( $name === 'errors' ) {
return $this->sv->getErrors();
}