PHP 클래스 Mutagenesis\Generator

파일 보기 프로젝트 열기: padraic/mutagenesis 1 사용 예제들

보호된 프로퍼티들

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