Use this if you intend on generating code generation objects based on the same file. This will keep previous changes to the file in tact during the same PHP process
Parameters: |
|
---|---|
Throws ExceptionInvalidArgumentException: | |
Return type: | FileGenerator |
@param FileReflection $fileReflection
Return type: | FileGenerator |
---|
@param DocBlockGenerator|string $docBlock
Return type: | FileGenerator |
---|
@param array $requiredFiles
Return type: | FileGenerator |
---|
Returns an array with the first element the use statement, second is the as part. If $withResolvedAs is set to true, there will be a third element that is the “resolved” as statement, as the second part is not required in use statements
Parameters: | bool – |
---|---|
Return type: | array |
@param array|string|ClassGenerator $class
Return type: | FileGenerator |
---|
@return string
@return FileGenerator