CoreFiles by mySites.guru
CurrentUserInterface.php33 lines, 709 bytes, from Joomla_5.0.2-Stable-Full_Package.zip
Raw History Compare with 5.0.1
md5
ccf993abe3219ce58f85848293a0d357
sha1
9398875d02a85b83007f84ad5564296433a39896
sha256
da3badb47c021fad82229ef22a4d4d1016e341dc051312bed43eeffab567b2fd
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2022 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\User;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Interface to be implemented by classes depending on a current user.
 *
 * @since  4.2.0
 */
interface CurrentUserInterface
{
    /**
     * Sets the current user.
     *
     * @param   User  $currentUser  The current user object
     *
     * @return  void
     *
     * @since   4.2.0
     */
    public function setCurrentUser(User $currentUser): void;
}

The same content is in 225 releases, Joomla 4.2.1 to 6.2.1-rc1. See them all, or every version of this file.