Hoa central
Public Member Functions | Protected Attributes | List of all members
Hoa\Xyl\Interpreter\Interpreter Class Reference

Public Member Functions

 __construct (Array $rank=[])
 
 setComponents (Array $rank)
 
 setComponent ($element, $component)
 
 getRank ()
 
 getResourcePath ()
 

Protected Attributes

 $_rank = []
 
 $_resourcePath = null
 

Detailed Description

Class .

Abstract interpreter.

Definition at line 49 of file Interpreter.php.

Constructor & Destructor Documentation

Hoa\Xyl\Interpreter\Interpreter::__construct ( Array  $rank = [])

Construct interpreter.

Parameters
array$rankRank.
Returns
void

Definition at line 73 of file Interpreter.php.

74  {
75  $this->setComponents($rank);
76 
77  return;
78  }

Here is the call graph for this function:

Member Function Documentation

Hoa\Xyl\Interpreter\Interpreter::getRank ( )

Get rank.

Returns
array

Definition at line 114 of file Interpreter.php.

115  {
116  return $this->_rank;
117  }
Hoa\Xyl\Interpreter\Interpreter::getResourcePath ( )

Get resource path.

Returns
string

Definition at line 124 of file Interpreter.php.

125  {
126  return $this->_resourcePath;
127  }
Hoa\Xyl\Interpreter\Interpreter::setComponent (   $element,
  $component 
)

Set rank.

Parameters
array$elementElement.
array$componentClassname of the component.
Returns
void

Definition at line 102 of file Interpreter.php.

103  {
104  $this->_rank[$element] = $component;
105 
106  return;
107  }

Here is the caller graph for this function:

Hoa\Xyl\Interpreter\Interpreter::setComponents ( Array  $rank)

Set ranks.

Parameters
array$rankRanks.
Returns
void

Definition at line 86 of file Interpreter.php.

87  {
88  foreach ($rank as $element => $component) {
89  $this->setComponent($element, $component);
90  }
91 
92  return;
93  }
setComponent($element, $component)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Hoa\Xyl\Interpreter\Interpreter::$_rank = []
protected

Definition at line 56 of file Interpreter.php.

Hoa\Xyl\Interpreter\Interpreter::$_resourcePath = null
protected

Definition at line 63 of file Interpreter.php.


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