* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ declare(strict_types=1); namespace PrestaShop\Module\Mbo\Addons\User; interface UserInterface { /** * @return bool */ public function isAuthenticated(): bool; /** * @pararm bool $encrypted * * @return array{username?: string, password?: string, accounts_token?: string} */ public function getCredentials(bool $encrypted = false): ?array; /** * @return array{username: string} */ public function getEmail(): array; }