src/Participation/Manager.php
public function getParticipatingVariant($test)
    {
        $test = $test instanceof TestInterface ? $test->getIdentifier() : $test;

        if ($this->storage->has($test)) {
            return $this->storage->get($test);
        }

        return null;
    }
public function getParticipatingVariant($test)
    {
        $test = $test instanceof TestInterface ? $test->getIdentifier() : $test;

        if ($this->storage->has($test)) {
            return $this->storage->get($test);
        }

        return null;
    }
public function getParticipatingVariant ( $ test ) { $ test = $ test instanceof TestInterface ? $ test -> getIdentifier ( ) : $ test ; if ( $ this -> storage -> has ( $ test ) ) { return $ this -> storage -> get ( $ test ) ; } return null ; }
Gets the variant the user is participating in for the given test.

@param TestInterface|string $test The identifier of the test to get the variant for.
@return string|null Returns the identifier of the variant or null if not participating.
Gets the variant the user is participating in for the given test .