PHP Класс DeploynautAPIFormatter

Показать файл Открыть проект

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

Метод Описание
getDeploymentData ( DNDeployment $deployment ) : array Return data about a single deployment for use in API response.
getStackMemberData ( DNProject $project, integer $memberID ) : null | array Return data about a particular {@link Member} of the stack for use in API response.

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

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

Return data about a single deployment for use in API response.
public getDeploymentData ( DNDeployment $deployment ) : array
$deployment DNDeployment
Результат array

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

Notes: 1) This method returns null instead of an array if the member doesn't exists anymore 2) 'role' can be null in the response. This is the case of an admin, or an operations user who can create the deployment but is not part of the stack roles.
public getStackMemberData ( DNProject $project, integer $memberID ) : null | array
$project DNProject
$memberID integer
Результат null | array