public function getTokens()
    {
        $pool = null;
        $session = \PHPSession::singleton();
        if($session->hasAttribute(self::TOKEN_KEY)){
            $pool = $session->getAttribute(self::TOKEN_KEY);
        }
        if(is_null($pool)){
            $pool = [];
        }

        return $pool;
    }
public function getTokens()
    {
        $pool = null;
        $session = \PHPSession::singleton();
        if($session->hasAttribute(self::TOKEN_KEY)){
            $pool = $session->getAttribute(self::TOKEN_KEY);
        }
        if(is_null($pool)){
            $pool = [];
        }

        return $pool;
    }
public function getTokens ( ) { $ pool = null ; $ session = \ PHPSession :: singleton ( ) ; if ( $ session -> hasAttribute ( self :: TOKEN_KEY ) ) { $ pool = $ session -> getAttribute ( self :: TOKEN_KEY ) ; } if ( is_null ( $ pool ) ) { $ pool = [ ] ; } return $ pool ; }
Retrieve the pool of tokens
@return array the tokens
Retrieve the pool of tokens