class Composer extends AbstractFile (View source)

Constants

PHP_FILE_EXTENSION

JSON_FILE_EXTENSION

Properties

protected Generator $generator from AbstractFile
protected PhpFile $file from AbstractFile
protected bool $runComposerUpdate Tests purpose: do not run composer update command

Methods

__construct(Generator $generator, string $name)

No description

setGenerator(Generator $generator)

No description

getGenerator()

No description

void
write()

No description

void
writeFile()

No description

string
getFileName()

No description

string
getFileDestination()

No description

string
getFileExtension()

No description

setFile(PhpFile $file)

No description

PhpFile
getFile()

No description

completeComposerJson()

No description

addAutoloadToComposerJson(array $content)

No description

addComposerSettings(array $content)

No description

array
getPsr4Autoload()

No description

array
getComposerFileContent()

No description

setComposerFileContent(array $content)

No description

static string
encodeToJson(array $content)

No description

string
getComposerFilePath()

No description

setRunComposerUpdate(bool $runComposerUpdate)

No description

bool
getRunComposerUpdate()

No description

Details

__construct(Generator $generator, string $name)

Parameters

Generator $generator
string $name

AbstractFile setGenerator(Generator $generator)

Parameters

Generator $generator

Return Value

AbstractFile

Generator getGenerator()

Return Value

Generator

void write()

Return Value

void

protected void writeFile()

Return Value

void

See also

\WsdlToPhp\PackageGenerator\File\AbstractFile::writeFile()

string getFileName()

Return Value

string

protected string getFileDestination()

Return Value

string

string getFileExtension()

Return Value

string

protected AbstractFile setFile(PhpFile $file)

Parameters

PhpFile $file

Return Value

AbstractFile

PhpFile getFile()

Return Value

PhpFile

protected Composer completeComposerJson()

Return Value

Composer

protected Composer addAutoloadToComposerJson(array $content)

Parameters

array $content

Return Value

Composer

protected Composer addComposerSettings(array $content)

Parameters

array $content

Return Value

Composer

protected array getPsr4Autoload()

Return Value

array

protected array getComposerFileContent()

Return Value

array

protected Composer setComposerFileContent(array $content)

Parameters

array $content

Return Value

Composer

static protected string encodeToJson(array $content)

Parameters

array $content

Return Value

string

protected string getComposerFilePath()

Return Value

string

Composer setRunComposerUpdate(bool $runComposerUpdate)

Parameters

bool $runComposerUpdate

Return Value

Composer

bool getRunComposerUpdate()

Return Value

bool