Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
NullCommand Class Reference
Inheritance diagram for NullCommand:
CommandInterface

Public Member Functions

 execute (array $commandSubject)
 

Detailed Description

Null command. Does nothing.

Use this class as an implementation of CommandInterface to ignore some action or in case if command invoked by Magento has no sense for payment method.

@api

Since
100.0.2

Definition at line 20 of file NullCommand.php.

Member Function Documentation

◆ execute()

execute ( array  $commandSubject)

Process command without any side effect.

Parameters
array$commandSubject
Returns
null|Command\ResultInterface @SuppressWarnings(PHPMD.UnusedFormalParameter)

Implements CommandInterface.

Definition at line 30 of file NullCommand.php.

31  {
32  return null;
33  }

The documentation for this class was generated from the following file: