PHP Class Alex\BehatLauncher\Behat\Run

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

Public Methods

Method 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 method

public __construct ( )

countFailed() public method

public countFailed ( ) : integer
return integer

countFinished() public method

public countFinished ( ) : integer
return integer

countPending() public method

public countPending ( ) : integer
return integer

countRunning() public method

public countRunning ( ) : integer
return integer

countStatus() public method

public countStatus ( string $status ) : integer
$status string a status (pending, running, succeeded, failed)
return integer

countSucceeded() public method

public countSucceeded ( ) : integer
return integer

createUnits() public method

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

denormalize() public method

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

getCreatedAt() public method

public getCreatedAt ( ) : DateTime | null
return DateTime | null

getDuration() public method

public getDuration ( ) : DateInterval
return DateInterval

getFinishedAt() public method

public getFinishedAt ( ) : DateTime
return DateTime

getId() public method

public getId ( )

getProgress() public method

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

getProjectName() public method

Returns project's name.
public getProjectName ( ) : string
return string

getProperties() public method

public getProperties ( ) : array
return array

getProperty() public method

Returns a property value.
public getProperty ( string $name ) : mixed
$name string a property name
return mixed

getStartedAt() public method

public getStartedAt ( ) : DateTime | null
return DateTime | null

getStatus() public method

public getStatus ( )

getTitle() public method

public getTitle ( )

getUnits() public method

public getUnits ( ) : RunUnitList
return RunUnitList

isFailed() public method

public isFailed ( ) : integer
return integer

isFinished() public method

public isFinished ( ) : integer
return integer

isPending() public method

public isPending ( ) : boolean
return boolean

isRunning() public method

public isRunning ( ) : boolean
return boolean

isSucceeded() public method

public isSucceeded ( ) : integer
return integer

normalize() public method

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

setCreatedAt() public method

public setCreatedAt ( DateTime $createdAt = null ) : Run
$createdAt DateTime
return Run

setFinishedAt() public method

public setFinishedAt ( DateTime $finishedAt = null ) : Run
$finishedAt DateTime
return Run

setId() public method

Changes ID.
public setId ( string $id ) : Run
$id string
return Run

setProjectName() public method

Changes the project name.
public setProjectName ( string $projectName ) : Run
$projectName string a project name
return Run

setProperties() public method

public setProperties ( array $properties ) : Run
$properties array
return Run

setProperty() public method

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

setStartedAt() public method

public setStartedAt ( DateTime $startedAt = null ) : Run
$startedAt DateTime
return Run

setTitle() public method

public setTitle ( $title )

setUnits() public method

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