PHP 클래스 Pantheon\Terminus\Collections\Workflows

상속: extends TerminusCollection, implements Pantheon\Terminus\Session\SessionAwareInterface, use trait Pantheon\Terminus\Session\SessionAwareTrait
파일 보기 프로젝트 열기: pantheon-systems/terminus 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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