PHP Класс Pantheon\Terminus\Collections\Workflows

Наследование: extends TerminusCollection, implements Pantheon\Terminus\Session\SessionAwareInterface, use trait Pantheon\Terminus\Session\SessionAwareTrait
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$collected_class string
$owner mixed

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

Метод Описание
__construct ( array $options = [] ) Instantiates the collection, sets param members as properties
allFinished ( ) : Workflow[] Returns all existing workflows that have finished
allWithLogs ( ) : Workflow[] Returns all existing workflows that contain logs
create ( string $type, array $options = [] ) : Workflow Creates a new workflow and adds its data to the collection
fetchWithOperations ( array $options = [] ) : void Fetches workflow data hydrated with operations
findLatestWithLogs ( ) : Workflow | null Get most-recent workflow from existing collection that has logs
getOwnerObject ( ) : mixed Returns the object which controls this collection
getUrl ( ) : string Get the URL for this model
lastCreatedAt ( ) : integer | null Get timestamp of most recently created Workflow
lastFinishedAt ( ) : integer | null Get timestamp of most recently finished workflow

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

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

Instantiates the collection, sets param members as properties
public __construct ( array $options = [] )
$options array Options with which to configure this collection

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

Returns all existing workflows that have finished
public allFinished ( ) : Workflow[]
Результат Workflow[]

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

Returns all existing workflows that contain logs
public allWithLogs ( ) : Workflow[]
Результат Workflow[]

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

Creates a new workflow and adds its data to the collection
public create ( string $type, array $options = [] ) : Workflow
$type string Type of workflow to create
$options array Additional information for the request, with the following possible keys: - environment: string - params: associative array of parameters for the request
Результат Workflow $model

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

Fetches workflow data hydrated with operations
public fetchWithOperations ( array $options = [] ) : void
$options array Additional information for the request
Результат void

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

Get most-recent workflow from existing collection that has logs
public findLatestWithLogs ( ) : Workflow | null
Результат Workflow | null

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

Returns the object which controls this collection
public getOwnerObject ( ) : mixed
Результат mixed

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

Get the URL for this model
public getUrl ( ) : string
Результат string

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

Get timestamp of most recently created Workflow
public lastCreatedAt ( ) : integer | null
Результат integer | null Timestamp

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

Get timestamp of most recently finished workflow
public lastFinishedAt ( ) : integer | null
Результат integer | null Timestamp

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

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

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

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

protected mixed $owner
Результат mixed