src/Authentication.php
public function &setAuthenticatedUser(AuthenticatedUserInterface $user = null)
    {
        $this->authenticated_user = $user;

        $this->triggerEvent('user_set', $user);

        return $this;
    }
public function &setAuthenticatedUser(AuthenticatedUserInterface $user = null)
    {
        $this->authenticated_user = $user;

        $this->triggerEvent('user_set', $user);

        return $this;
    }
{@inheritdoc}