PHP Class Alex\BehatLauncher\Behat\Run

Inheritance: implements Symfony\Component\Serializer\Normalizer\NormalizableInterface, implements Symfony\Component\Serializer\Normalizer\DenormalizableInterface
Afficher le fichier Open project: alexandresalome/behat-launcher Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( )
countFailed ( ) : integer
countFinished ( ) : integer
countPending ( ) : integer
countRunning ( ) : integer
countStatus ( string $status ) : integer
countSucceeded ( ) : integer
createUnits ( array $features ) Creates run units
denormalize ( Symfony\Component\Serializer\Normalizer\DenormalizerInterface $denormalizer, $data, $format = null, array $context = [] )
getCreatedAt ( ) : DateTime | null
getDuration ( ) : DateInterval
getFinishedAt ( ) : DateTime
getId ( )
getProgress ( string $count = 100 ) : int[] Returns an array of status progress, as integers.
getProjectName ( ) : string Returns project's name.
getProperties ( ) : array
getProperty ( string $name ) : mixed Returns a property value.
getStartedAt ( ) : DateTime | null
getStatus ( )
getTitle ( )
getUnits ( ) : RunUnitList
isFailed ( ) : integer
isFinished ( ) : integer
isPending ( ) : boolean
isRunning ( ) : boolean
isSucceeded ( ) : integer
normalize ( Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer, $format = null, array $context = [] )
setCreatedAt ( DateTime $createdAt = null ) : Run
setFinishedAt ( DateTime $finishedAt = null ) : Run
setId ( string $id ) : Run Changes ID.
setProjectName ( string $projectName ) : Run Changes the project name.
setProperties ( array $properties ) : Run
setProperty ( string $name, mixed $value ) : Run Changes a run property.
setStartedAt ( DateTime $startedAt = null ) : Run
setTitle ( $title )
setUnits ( RunUnitList $units ) : Run Changes the unit collection.

Method Details

__construct() public méthode

public __construct ( )

countFailed() public méthode

public countFailed ( ) : integer
Résultat integer

countFinished() public méthode

public countFinished ( ) : integer
Résultat integer

countPending() public méthode

public countPending ( ) : integer
Résultat integer

countRunning() public méthode

public countRunning ( ) : integer
Résultat integer

countStatus() public méthode

public countStatus ( string $status ) : integer
$status string a status (pending, running, succeeded, failed)
Résultat integer

countSucceeded() public méthode

public countSucceeded ( ) : integer
Résultat integer

createUnits() public méthode

Creates run units
public createUnits ( array $features )
$features array

denormalize() public méthode

public denormalize ( Symfony\Component\Serializer\Normalizer\DenormalizerInterface $denormalizer, $data, $format = null, array $context = [] )
$denormalizer Symfony\Component\Serializer\Normalizer\DenormalizerInterface
$context array

getCreatedAt() public méthode

public getCreatedAt ( ) : DateTime | null
Résultat DateTime | null

getDuration() public méthode

public getDuration ( ) : DateInterval
Résultat DateInterval

getFinishedAt() public méthode

public getFinishedAt ( ) : DateTime
Résultat DateTime

getId() public méthode

public getId ( )

getProgress() public méthode

Returns an array of status progress, as integers.
public getProgress ( string $count = 100 ) : int[]
$count string number of count to distribute
Résultat int[]

getProjectName() public méthode

Returns project's name.
public getProjectName ( ) : string
Résultat string

getProperties() public méthode

public getProperties ( ) : array
Résultat array

getProperty() public méthode

Returns a property value.
public getProperty ( string $name ) : mixed
$name string a property name
Résultat mixed

getStartedAt() public méthode

public getStartedAt ( ) : DateTime | null
Résultat DateTime | null

getStatus() public méthode

public getStatus ( )

getTitle() public méthode

public getTitle ( )

getUnits() public méthode

public getUnits ( ) : RunUnitList
Résultat RunUnitList

isFailed() public méthode

public isFailed ( ) : integer
Résultat integer

isFinished() public méthode

public isFinished ( ) : integer
Résultat integer

isPending() public méthode

public isPending ( ) : boolean
Résultat boolean

isRunning() public méthode

public isRunning ( ) : boolean
Résultat boolean

isSucceeded() public méthode

public isSucceeded ( ) : integer
Résultat integer

normalize() public méthode

public normalize ( Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer, $format = null, array $context = [] )
$normalizer Symfony\Component\Serializer\Normalizer\NormalizerInterface
$context array

setCreatedAt() public méthode

public setCreatedAt ( DateTime $createdAt = null ) : Run
$createdAt DateTime
Résultat Run

setFinishedAt() public méthode

public setFinishedAt ( DateTime $finishedAt = null ) : Run
$finishedAt DateTime
Résultat Run

setId() public méthode

Changes ID.
public setId ( string $id ) : Run
$id string
Résultat Run

setProjectName() public méthode

Changes the project name.
public setProjectName ( string $projectName ) : Run
$projectName string a project name
Résultat Run

setProperties() public méthode

public setProperties ( array $properties ) : Run
$properties array
Résultat Run

setProperty() public méthode

Changes a run property.
public setProperty ( string $name, mixed $value ) : Run
$name string the property to change
$value mixed the value to set
Résultat Run

setStartedAt() public méthode

public setStartedAt ( DateTime $startedAt = null ) : Run
$startedAt DateTime
Résultat Run

setTitle() public méthode

public setTitle ( $title )

setUnits() public méthode

Changes the unit collection.
public setUnits ( RunUnitList $units ) : Run
$units RunUnitList units to replace with
Résultat Run