CreateCommand
in package
implements
Command
FinalYes
File Create command is used by the File Factory Strategy.
The command is passed to the registered middle ware classes.
Table of Contents
Interfaces
- Command
- Commands are used by Middleware
Properties
- $context : ContextStack
- $file : File
- $strategies : StrategyContainer
Methods
- __construct() : mixed
- Initializes this command.
- getContext() : ContextStack
- getFile() : File
- getStrategies() : StrategyContainer
- Returns the strategyContainer in this command context.
Properties
$context read-only
private
ContextStack
$context
$file read-only
private
File
$file
$strategies read-only
private
StrategyContainer
$strategies
Methods
__construct()
Initializes this command.
public
__construct(ContextStack $context, File $file, StrategyContainer $strategies) : mixed
Parameters
- $context : ContextStack
- $file : File
- $strategies : StrategyContainer
getContext()
public
getContext() : ContextStack
Return values
ContextStackgetFile()
public
getFile() : File
Return values
FilegetStrategies()
Returns the strategyContainer in this command context.
public
getStrategies() : StrategyContainer