Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Data Fields
ActionGroupObjectBuilder Class Reference

Public Member Functions

 withName ($name)
 
 withArguments ($args)
 
 withActionObjects ($actionObjs)
 
 withExtendedAction ($extendedActionGroup)
 
 __construct ()
 
 build ()
 

Data Fields

const DEFAULT_ACTION_OBJECT_NAME = 'action1'
 

Detailed Description

Definition at line 12 of file ActionGroupObjectBuilder.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

ActionGroupObjectBuilder constructor.

Definition at line 95 of file ActionGroupObjectBuilder.php.

96  {
97  $this->actionObjects = [
98  new ActionObject(self::DEFAULT_ACTION_OBJECT_NAME, 'testAction', ['userInput' => 'literal'])
99  ];
100  }

Member Function Documentation

◆ build()

build ( )

Function which takes builder parameters and returns a new ActionGroupObject.

Returns
ActionGroupObject

Definition at line 107 of file ActionGroupObjectBuilder.php.

108  {
109  return new ActionGroupObject(
110  $this->name,
111  $this->arguments,
112  $this->actionObjects,
113  $this->extends
114  );
115  }

◆ withActionObjects()

withActionObjects (   $actionObjs)

Setter for the Action Group Object action objects

Parameters
array$actionObjs
Returns
ActionGroupObjectBuilder

Definition at line 74 of file ActionGroupObjectBuilder.php.

75  {
76  $this->actionObjects = $actionObjs;
77  return $this;
78  }

◆ withArguments()

withArguments (   $args)

Setter for the Action Group Object arguments

Parameters
array$args
Returns
ActionGroupObjectBuilder

Definition at line 62 of file ActionGroupObjectBuilder.php.

63  {
64  $this->arguments = $args;
65  return $this;
66  }

◆ withExtendedAction()

withExtendedAction (   $extendedActionGroup)

Setter for the Action Group Object extended objects

Parameters
string$extendedActionGroup
Returns
ActionGroupObjectBuilder

Definition at line 86 of file ActionGroupObjectBuilder.php.

87  {
88  $this->extends = $extendedActionGroup;
89  return $this;
90  }

◆ withName()

withName (   $name)

Setter for the Action Group Object name

Parameters
string$name
Returns
ActionGroupObjectBuilder

Definition at line 50 of file ActionGroupObjectBuilder.php.

51  {
52  $this->name = $name;
53  return $this;
54  }
if(!isset($_GET['name'])) $name
Definition: log.php:14

Field Documentation

◆ DEFAULT_ACTION_OBJECT_NAME

const DEFAULT_ACTION_OBJECT_NAME = 'action1'

Definition at line 14 of file ActionGroupObjectBuilder.php.


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