PHP Класс Mutagenesis\Generator

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$_files array Collated files against which mutations can be generated
$_mutables Mutable[] The collection of possible mutations stored as sets of mutation instructions (allowing us to apply and reverse mutations on the fly)
$_sourceDirectory string Path to the source directory of the project being mutated

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

Метод Описание
generate ( $mutableObject = null ) : void Given a source directory (@see \Mutagenesis\Generator::setSourceDirectory) pass each to a \Mutagenesis\Mutable instance which is used to generate mutations and store the instructions for applying and reversing them as a set of mutables (instances of \Mutagenesis\Mutation).
getFiles ( ) : array Return collated files against which mutations can be generated.
getMutables ( ) : Mutable[] Return an array of mutable files.
getSourceDirectory ( ) : string Get the source directory of the source code to be mutated
setSourceDirectory ( string $sourceDirectory ) Set the source directory of the source code to be mutated

Защищенные методы

Метод Описание
_collateFiles ( $target ) : void Collate all files capable of being mutated. For now, this only considers files ending in the PHP extension.

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

_collateFiles() защищенный Метод

Collate all files capable of being mutated. For now, this only considers files ending in the PHP extension.
protected _collateFiles ( $target ) : void
Результат void

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

Given a source directory (@see \Mutagenesis\Generator::setSourceDirectory) pass each to a \Mutagenesis\Mutable instance which is used to generate mutations and store the instructions for applying and reversing them as a set of mutables (instances of \Mutagenesis\Mutation).
public generate ( $mutableObject = null ) : void
Результат void

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

Return collated files against which mutations can be generated.
public getFiles ( ) : array
Результат array

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

Return an array of mutable files.
public getMutables ( ) : Mutable[]
Результат Mutable[]

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

Get the source directory of the source code to be mutated
public getSourceDirectory ( ) : string
Результат string

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

Set the source directory of the source code to be mutated
public setSourceDirectory ( string $sourceDirectory )
$sourceDirectory string

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

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

Collated files against which mutations can be generated
protected array $_files
Результат array

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

The collection of possible mutations stored as sets of mutation instructions (allowing us to apply and reverse mutations on the fly)
protected Mutable[],Mutagenesis $_mutables
Результат Mutable[]

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

Path to the source directory of the project being mutated
protected string $_sourceDirectory
Результат string