/** * @param Variable $variable * @return void */ public function addGlobalVariable(Variable $variable) { $this->globalVariables[$variable->getName()] = $variable->getValue(); }
/** * @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()]; }