Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
build () | |
withName ($name) | |
withOperation ($operation) | |
withType ($type) | |
withMetadata ($metadata) | |
Definition at line 10 of file OperationDefinitionBuilder.php.
build | ( | ) |
Function which builds an operation defintions based on the fields set by the user.
Definition at line 51 of file OperationDefinitionBuilder.php.
withMetadata | ( | $metadata | ) |
Takes an array of values => type or an array of operation elements and transforms into operation metadata.
array | $metadata |
Definition at line 110 of file OperationDefinitionBuilder.php.
withName | ( | $name | ) |
Sets the name of the operation definition to be built.
string | $name |
Definition at line 74 of file OperationDefinitionBuilder.php.
withOperation | ( | $operation | ) |
Sets the name of the operation for the object to be built.
string | $operation |
Definition at line 86 of file OperationDefinitionBuilder.php.
withType | ( | $type | ) |
Sets the name of the type of operation (e.g. create, delete)
string | $type |
Definition at line 98 of file OperationDefinitionBuilder.php.