JRA, PHP cAPI interface
  • Namespace
  • Class
  • Tree

Namespaces

  • JRA
    • Abstracts
    • Commands
      • Invokers
      • Methods
        • Content
        • Token
        • User
      • Routes
    • ComposerHandler
    • Config
      • Helper
    • Exceptions
    • Facades
    • Factories
    • Interfaces
    • Objects
      • Response
        • Data
    • Responsibilities
      • Handlers
      • Responsible
        • Login
        • Logout

Classes

  • ChainFactory
  • CommandFactory
  • ConfigFactory
  • GuzzleFactory
  • InternalFactory

Class CommandFactory

Namespace: JRA\Factories
Located at Factories/CommandFactory.php

Methods summary

public
# __construct( JRA\Factories\InternalFactory $pInternalFactory )

CommandFactory constructor.

CommandFactory constructor.

Parameters

$pInternalFactory
The factory which is used to create the internal objects.
public JRA\Commands\Invokers\CommandInvoker
# getContentCommand( JRA\Interfaces\ConfigInterface $pConfig, string $pMethodRoute, array $pAdditionalArguments = [] )

Returns a new command invoker with a content command configured.

Returns a new command invoker with a content command configured.

Parameters

$pConfig
The configuration for the creation of the command invoker.
$pMethodRoute
The requested method route.
$pAdditionalArguments
Additional arguments which the command needs.

Returns

JRA\Commands\Invokers\CommandInvoker
Returns the created and configured command invoker.
public JRA\Commands\Invokers\CommandInvoker
# getTokenCommand( JRA\Interfaces\ConfigInterface $pConfig, string $pMethodRoute, array $pAdditionalArguments = [] )

Returns a new command invoker with a token command configured.

Returns a new command invoker with a token command configured.

Parameters

$pConfig
The configuration for the creation of the command invoker.
$pMethodRoute
The requested method route.
$pAdditionalArguments
Additional arguments which the command needs.

Returns

JRA\Commands\Invokers\CommandInvoker
Returns the created and configured command invoker.
public JRA\Commands\Invokers\CommandInvoker
# getUserCommand( JRA\Interfaces\ConfigInterface $pConfig, string $pMethodRoute, array $pAdditionalArguments = [] )

Returns a new command invoker with an user command configured.

Returns a new command invoker with an user command configured.

Parameters

$pConfig
The configuration for the creation of the command invoker.
$pMethodRoute
The requested method route.
$pAdditionalArguments
Additional arguments which the command needs.

Returns

JRA\Commands\Invokers\CommandInvoker
Returns the created and configured command invoker.
JRA, PHP cAPI interface API documentation generated by ApiGen