Method | Description | |
---|---|---|
__construct ( PhpSpec\Util\ClassFileAnalyser $analyser ) | ||
insertAfterMethod ( string $class, string $methodName, string $method ) : string | ||
insertMethodFirstInClass ( string $class, string $method ) : string | ||
insertMethodLastInClass ( string $class, string $method ) : string |
Method | Description | |
---|---|---|
insertStringAfterLine ( string $target, string $toInsert, integer $line, boolean $leadingNewline = true ) : string | ||
insertStringBeforeLine ( string $target, string $toInsert, integer $line ) : string | ||
isWritePoint ( $token ) : boolean | ||
writeAtEndOfClass ( string $class, string $method, boolean $prependNewLine = false ) : string |
public __construct ( PhpSpec\Util\ClassFileAnalyser $analyser ) | ||
$analyser | PhpSpec\Util\ClassFileAnalyser |