Exemplo n.º 1
0
 /**
  * @param Variable $variable
  * @return void
  */
 public function addGlobalVariable(Variable $variable)
 {
     $this->globalVariables[$variable->getName()] = $variable->getValue();
 }
Exemplo n.º 2
0
 /**
  * @param Recipient $recipient
  * @param Variable $variable
  * @return void
  */
 public function addLocalVariable(Recipient $recipient, Variable $variable)
 {
     $this->localVariables[$recipient->getEmail()][$variable->getName()] = ['name' => strtoupper($variable->getName()), 'content' => $variable->getValue()];
 }