PHP Класс DeploymentStrategy

Наследование: extends ViewableData
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$actionCode string
$actionTitle string
$changes array
$environment DNEnvironment
$estimatedTime integer
$messages array
$options array
$validationCode string Validation code

Открытые методы

Метод Описание
__construct ( DNEnvironment $environment, array $options = [] )
createDeployment ( ) : DNDeployment
fromArray ( string $data ) Load from array.
fromJSON ( string $json ) Load from JSON associative array.
getActionCode ( ) : string
getActionTitle ( ) : string
getChange ( $key ) : ArrayData | null Returns a change or a given key.
getChanges ( ) : array
getChangesModificationNeeded ( ) : array Filter the changeset where modification was not required.
getEstimatedTime ( ) : integer
getMessages ( ) : array
getOption ( string $option ) : string | null
getOptions ( ) : string
getValidationCode ( ) : string
setActionCode ( $code )
setActionTitle ( string $title )
setChange ( string $title, string $from, string $to )
setChangeDescriptionOnly ( string $title, string $desc )
setChanges ( array $data )
setEstimatedTime ( $seconds )
setMessage ( string $msg, $code = self::ERROR_CODE )
setOption ( string $option, string $value )
setValidationCode ( string $code )
toArray ( ) : array Transform the deployment strategy to an array.
toJSON ( ) : string
updateDeployment ( integer $deploymentID ) : DNDeployment

Описание методов

__construct() публичный Метод

public __construct ( DNEnvironment $environment, array $options = [] )
$environment DNEnvironment
$options array

createDeployment() публичный Метод

public createDeployment ( ) : DNDeployment
Результат DNDeployment

fromArray() публичный Метод

Environment must be set by the callee when creating this object.
public fromArray ( string $data )
$data string

fromJSON() публичный Метод

Environment must be set by the callee when creating this object.
public fromJSON ( string $json )
$json string

getActionCode() публичный Метод

public getActionCode ( ) : string
Результат string

getActionTitle() публичный Метод

public getActionTitle ( ) : string
Результат string

getChange() публичный Метод

Returns a change or a given key.
public getChange ( $key ) : ArrayData | null
Результат ArrayData | null

getChanges() публичный Метод

public getChanges ( ) : array
Результат array Associative array of changes, e.g. array( 'SHA' => array( 'from' => 'abc', 'to' => 'def' ) )

getChangesModificationNeeded() публичный Метод

Filter the changeset where modification was not required.
public getChangesModificationNeeded ( ) : array
Результат array

getEstimatedTime() публичный Метод

public getEstimatedTime ( ) : integer
Результат integer Time in minutes

getMessages() публичный Метод

public getMessages ( ) : array
Результат array

getOption() публичный Метод

public getOption ( string $option ) : string | null
$option string
Результат string | null

getOptions() публичный Метод

public getOptions ( ) : string
Результат string

getValidationCode() публичный Метод

public getValidationCode ( ) : string
Результат string

setActionCode() публичный Метод

public setActionCode ( $code )

setActionTitle() публичный Метод

public setActionTitle ( string $title )
$title string

setChange() публичный Метод

public setChange ( string $title, string $from, string $to )
$title string
$from string
$to string

setChangeDescriptionOnly() публичный Метод

public setChangeDescriptionOnly ( string $title, string $desc )
$title string
$desc string

setChanges() публичный Метод

public setChanges ( array $data )
$data array

setEstimatedTime() публичный Метод

public setEstimatedTime ( $seconds )

setMessage() публичный Метод

public setMessage ( string $msg, $code = self::ERROR_CODE )
$msg string

setOption() публичный Метод

public setOption ( string $option, string $value )
$option string
$value string

setValidationCode() публичный Метод

public setValidationCode ( string $code )
$code string

toArray() публичный Метод

Transform the deployment strategy to an array.
public toArray ( ) : array
Результат array

toJSON() публичный Метод

public toJSON ( ) : string
Результат string

updateDeployment() публичный Метод

public updateDeployment ( integer $deploymentID ) : DNDeployment
$deploymentID integer
Результат DNDeployment

Описание свойств

$actionCode защищенное свойство

protected string $actionCode
Результат string

$actionTitle защищенное свойство

protected string $actionTitle
Результат string

$changes защищенное свойство

protected array $changes
Результат array

$environment защищенное свойство

protected DNEnvironment $environment
Результат DNEnvironment

$estimatedTime защищенное свойство

protected int $estimatedTime
Результат integer

$messages защищенное свойство

protected array $messages
Результат array

$options защищенное свойство

protected array $options
Результат array

$validationCode защищенное свойство

Validation code
protected string $validationCode
Результат string