PHP Class Alex\BehatLauncher\Behat\ProjectList

Inheritance: implements IteratorAggregate
Show file Open project: alexandresalome/behat-launcher

Public Methods

Method Description
__construct ( array $projects = [] ) Creates a new project.
add ( Project $project ) : ProjectList Adds a project to the list.
get ( string $name ) : Project Searches a Project in the list.
getAll ( ) : array Returns all projects.
getIterator ( )

Method Details

__construct() public method

Creates a new project.
public __construct ( array $projects = [] )
$projects array an array of Project objects.

add() public method

Adds a project to the list.
public add ( Project $project ) : ProjectList
$project Project project to add to list
return ProjectList

get() public method

Searches a Project in the list.
public get ( string $name ) : Project
$name string a project name
return Project

getAll() public method

Returns all projects.
public getAll ( ) : array
return array an array of Project objects

getIterator() public method

public getIterator ( )