public function expireByToken($token)
    {
        $token = $this->findByToken($token);

        if (! is_null($token)) {
            return $token->expire();
        }
    }
public function expireByToken($token)
    {
        $token = $this->findByToken($token);

        if (! is_null($token)) {
            return $token->expire();
        }
    }
public function expireByToken ( $ token ) { $ token = $ this -> findByToken ( $ token ) ; if ( ! is_null ( $ token ) ) { return $ token -> expire ( ) ; } }
Find an object by its token and immediately expire it.

@param string $token
Find an object by its token and immediately expire it .