-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fahad/readme-changes
- Loading branch information
Showing
25 changed files
with
1,339 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# This is a comment. | ||
# Each line is a file pattern followed by one or more owners. | ||
|
||
# These owners will be the default owners for everything in the repo. | ||
# Unless a later match takes precedence, @global-owner1 and @global-owner2 | ||
# will be requested for review when someone opens a pull request. | ||
* @optimizely/fullstack-devs | ||
|
||
# Order is important; the last matching pattern takes the most precedence. | ||
# When someone opens a pull request that only modifies JS files, only @js-owner | ||
# and not the global owner(s) will be requested for a review. | ||
#*.js @js-owner | ||
|
||
# You can also use email addresses if you prefer. They'll be used to look up | ||
# users just like we do for commit author emails. | ||
#docs/* docs@example.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
<?php | ||
/** | ||
* Copyright 2016, 2018-2019 Optimizely | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
namespace Optimizely\Config; | ||
|
||
/** | ||
* Interface ProjectConfigInterface | ||
* | ||
* @package Optimizely | ||
*/ | ||
interface ProjectConfigInterface | ||
{ | ||
/** | ||
* @return string String representing account ID from the datafile. | ||
*/ | ||
public function getAccountId(); | ||
|
||
/** | ||
* @return string String representing project ID from the datafile. | ||
*/ | ||
public function getProjectId(); | ||
|
||
/** | ||
* @return boolean Flag denoting if Optimizely should remove last block | ||
* of visitors' IP address before storing event data | ||
*/ | ||
public function getAnonymizeIP(); | ||
|
||
/** | ||
* @return boolean Flag denoting if Optimizely should perform | ||
* bot filtering on your dispatched events. | ||
*/ | ||
public function getBotFiltering(); | ||
|
||
/** | ||
* @return string String representing revision of the datafile. | ||
*/ | ||
public function getRevision(); | ||
|
||
/** | ||
* @return array List of feature flags parsed from the datafile | ||
*/ | ||
public function getFeatureFlags(); | ||
|
||
/** | ||
* @param $groupId string ID of the group. | ||
* | ||
* @return Group Entity corresponding to the ID. | ||
* Dummy entity is returned if ID is invalid. | ||
*/ | ||
public function getGroup($groupId); | ||
|
||
/** | ||
* @param $experimentKey string Key of the experiment. | ||
* | ||
* @return Experiment Entity corresponding to the key. | ||
* Dummy entity is returned if key is invalid. | ||
*/ | ||
public function getExperimentFromKey($experimentKey); | ||
|
||
/** | ||
* @param $experimentId string ID of the experiment. | ||
* | ||
* @return Experiment Entity corresponding to the key. | ||
* Dummy entity is returned if ID is invalid. | ||
*/ | ||
public function getExperimentFromId($experimentId); | ||
|
||
/** | ||
* @param String $featureKey Key of the feature flag | ||
* | ||
* @return FeatureFlag Entity corresponding to the key. | ||
*/ | ||
public function getFeatureFlagFromKey($featureKey); | ||
|
||
/** | ||
* @param String $rolloutId | ||
* | ||
* @return Rollout | ||
*/ | ||
public function getRolloutFromId($rolloutId); | ||
|
||
/** | ||
* @param $eventKey string Key of the event. | ||
* | ||
* @return Event Entity corresponding to the key. | ||
* Dummy entity is returned if key is invalid. | ||
*/ | ||
public function getEvent($eventKey); | ||
|
||
/** | ||
* @param $audienceId string ID of the audience. | ||
* | ||
* @return Audience Entity corresponding to the ID. | ||
* Null is returned if ID is invalid. | ||
*/ | ||
public function getAudience($audienceId); | ||
|
||
/** | ||
* @param $attributeKey string Key of the attribute. | ||
* | ||
* @return Attribute Entity corresponding to the key. | ||
* Null is returned if key is invalid. | ||
*/ | ||
public function getAttribute($attributeKey); | ||
|
||
/** | ||
* @param $experimentKey string Key for experiment. | ||
* @param $variationKey string Key for variation. | ||
* | ||
* @return Variation Entity corresponding to the provided experiment key and variation key. | ||
* Dummy entity is returned if key or ID is invalid. | ||
*/ | ||
public function getVariationFromKey($experimentKey, $variationKey); | ||
|
||
/** | ||
* @param $experimentKey string Key for experiment. | ||
* @param $variationId string ID for variation. | ||
* | ||
* @return Variation Entity corresponding to the provided experiment key and variation ID. | ||
* Dummy entity is returned if key or ID is invalid. | ||
*/ | ||
public function getVariationFromId($experimentKey, $variationId); | ||
|
||
/** | ||
* Gets the feature variable instance given feature flag key and variable key | ||
* | ||
* @param string Feature flag key | ||
* @param string Variable key | ||
* | ||
* @return FeatureVariable / null | ||
*/ | ||
public function getFeatureVariableFromKey($featureFlagKey, $variableKey); | ||
|
||
/** | ||
* Determines if given experiment is a feature test. | ||
* | ||
* @param string Experiment ID. | ||
* | ||
* @return boolean A boolean value that indicates if the experiment is a feature test. | ||
*/ | ||
public function isFeatureExperiment($experimentId); | ||
} |
Oops, something went wrong.