MessageArgumentsBase.php in Message 7
File
includes/MessageArgumentsBase.php
View source
<?php
abstract class MessageArgumentsBase implements MessageArgumentInterface {
protected $message;
public function getMessage() {
return $this->message;
}
public function setMessage(Message $message) {
$this->message = $message;
return $this;
}
public function getArguments() {
$arguments = array();
$callbacks = $this
->getNameArgument();
foreach ($callbacks as $argument => $callback) {
$arguments[$argument] = call_user_func($callback);
}
return $arguments;
}
}