PHP 클래스 Opensoft\Rollout\Feature

저자: Richard Fullmer ([email protected])
파일 보기 프로젝트 열기: opensoft/rollout 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $name, string | null $settings = null )
addGroup ( string $group )
addUser ( RolloutUserInterface $user )
clear ( ) Clear the feature of all configuration
getGroups ( ) : array
getName ( ) : string
getPercentage ( ) : integer
getRequestParam ( ) : string | null
getUsers ( ) : array
isActive ( Rollout $rollout, RolloutUserInterface $user = null, array $requestParameters = [] ) : boolean Is the feature active?
removeGroup ( string $group )
removeUser ( RolloutUserInterface $user )
serialize ( ) : string
setPercentage ( integer $percentage )
setRequestParam ( string | null $requestParam )
toArray ( ) : array

비공개 메소드들

메소드 설명
isParamInRequestParams ( array $requestParameters ) : boolean
isUserInActiveGroup ( RolloutUserInterface $user, Rollout $rollout ) : boolean
isUserInActiveUsers ( RolloutUserInterface $user ) : boolean
isUserInPercentage ( RolloutUserInterface $user ) : boolean

메소드 상세

__construct() 공개 메소드

public __construct ( string $name, string | null $settings = null )
$name string
$settings string | null

addGroup() 공개 메소드

public addGroup ( string $group )
$group string

addUser() 공개 메소드

public addUser ( RolloutUserInterface $user )
$user RolloutUserInterface

clear() 공개 메소드

Clear the feature of all configuration
public clear ( )

getGroups() 공개 메소드

public getGroups ( ) : array
리턴 array

getName() 공개 메소드

public getName ( ) : string
리턴 string

getPercentage() 공개 메소드

public getPercentage ( ) : integer
리턴 integer

getRequestParam() 공개 메소드

public getRequestParam ( ) : string | null
리턴 string | null

getUsers() 공개 메소드

public getUsers ( ) : array
리턴 array

isActive() 공개 메소드

Is the feature active?
public isActive ( Rollout $rollout, RolloutUserInterface $user = null, array $requestParameters = [] ) : boolean
$rollout Rollout
$user RolloutUserInterface
$requestParameters array
리턴 boolean

removeGroup() 공개 메소드

public removeGroup ( string $group )
$group string

removeUser() 공개 메소드

public removeUser ( RolloutUserInterface $user )
$user RolloutUserInterface

serialize() 공개 메소드

public serialize ( ) : string
리턴 string

setPercentage() 공개 메소드

public setPercentage ( integer $percentage )
$percentage integer

setRequestParam() 공개 메소드

public setRequestParam ( string | null $requestParam )
$requestParam string | null

toArray() 공개 메소드

public toArray ( ) : array
리턴 array