Skip to content

DefaultCommands


  • Full name: \Codefy\Framework\Support\DefaultCommands
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Methods

__construct

public __construct((class-string<\Symfony\Component\Console\Command\SignalableCommandInterface>|callable)[] $collection = []): mixed

Parameters:

Parameter Type Description
$collection (class-string<\Symfony\Component\Console\Command\SignalableCommandInterface>|callable)[]

Inherited methods

merge

Merge the given collection into another collection.

public merge(array $collection): static

Parameters:

Parameter Type Description
$collection array

replace

Replace the given collection with other collections.

public replace(array $replacements): static

Parameters:

Parameter Type Description
$replacements array

except

Disable the given collection.

public except(array $collection): static

Parameters:

Parameter Type Description
$collection array

toArray

Convert the collection to an array.

public toArray(): array