wikimedia/mediawiki-extensions-MobileFrontend

View on GitHub
includes/Features/IUserMode.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace MobileFrontend\Features;

/**
 * Interface represents user mobile mode.
 * As example: Beta Mode
 *
 * @package MobileFrontend\Features
 * @codeCoverageIgnore
 */
interface IUserMode {

    /**
     * Return user mode identifier
     * @return string
     */
    public function getModeIdentifier();

    /**
     * Checks if user opted-in into mode
     * @return bool
     */
    public function isEnabled();

}