public function setTokenValidity($tokenValidity) {
        $tknVal = intval($tokenValidity);

        if (empty($tknVal)) {
            $tknVal = self::BASIC_VALIDITY;
        }

        $this->tokenValidity = intval($tknVal);
    }
public function setTokenValidity($tokenValidity) {
        $tknVal = intval($tokenValidity);

        if (empty($tknVal)) {
            $tknVal = self::BASIC_VALIDITY;
        }

        $this->tokenValidity = intval($tknVal);
    }
public function setTokenValidity ( $ tokenValidity ) { $ tknVal = intval ( $ tokenValidity ) ; if ( empty ( $ tknVal ) ) { $ tknVal = self :: BASIC_VALIDITY ; } $ this -> tokenValidity = intval ( $ tknVal ) ; }
Sets token validity
@param int $tokenValidity Token validity.
Sets token validity