request = $request; $this->overrideName = 'vector' . strtolower( $requirementName ); $this->requirementName = $requirementName; } /** * Check query parameter to override config or not. * Then check for AB test value. * Fallback to config value. * * @return bool|null */ public function isMet() { // Check query parameter. if ( $this->request->getCheck( $this->overrideName ) ) { return $this->request->getBool( $this->overrideName ); } $vectorReq = 'Vector' . $this->requirementName; if ( $this->request->getCheck( $vectorReq ) ) { return $this->request->getBool( $vectorReq ); } return null; } }