<commit_before><?php declare(strict_types=1);

namespace Gos\Bundle\WebSocketBundle\Client;

use Ratchet\ConnectionInterface;
use Ratchet\Wamp\Topic;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;

interface ClientManipulatorInterface
{
    /**
     * @return ClientConnection[]
     */
    public function findAllByUsername(Topic $topic, string $username): array;

    /**
     * @return ClientConnection[]
     */
    public function findByRoles(Topic $topic, array $roles): array;

    /**
     * @return ClientConnection[]
     */
    public function getAll(Topic $topic, bool $anonymous = false): array;

    public function getClient(ConnectionInterface $connection): TokenInterface;

    /**
     * @return string|object
     */
    public function getUser(ConnectionInterface $connection);
}<commit_msg>Update the client manipulator interface's user return to match up with the security token types<commit_after><?php declare(strict_types=1);

namespace Gos\Bundle\WebSocketBundle\Client;

use Ratchet\ConnectionInterface;
use Ratchet\Wamp\Topic;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\User\UserInterface;

interface ClientManipulatorInterface
{
    /**
     * @return ClientConnection[]
     */
    public function findAllByUsername(Topic $topic, string $username): array;

    /**
     * @return ClientConnection[]
     */
    public function findByRoles(Topic $topic, array $roles): array;

    /**
     * @return ClientConnection[]
     */
    public function getAll(Topic $topic, bool $anonymous = false): array;

    public function getClient(ConnectionInterface $connection): TokenInterface;

    /**
     * @return string|\Stringable|UserInterface
     */
    public function getUser(ConnectionInterface $connection);
}
{'fraction_non_alphanumeric': 0.1064991807755325, 'fraction_numerical': 0.0010922992900054614, 'mean_word_length': 4.103064066852368, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '120318', 'n_tokens_mistral': 490, 'n_tokens_neox': 479, 'n_words': 118}