public function __get($k)
{
if (array_key_exists($k, $this->_values)) {
return $this->_values[$k];
} else {
if ($this->_transientValues->includes($k)) {
$class = get_class($this);
$attrs = join(', ', array_keys($this->_values));
$message = "Pingpp Notice: Undefined property of {$class} instance: {$k}. " . "HINT: The {$k} attribute was set in the past, however. " . "It was then wiped when refreshing the object " . "with the result returned by Pingpp's API, " . "probably as a result of a save(). The attributes currently " . "available on this object are: {$attrs}";
error_log($message);
return null;
} else {
$class = get_class($this);
error_log("Pingpp Notice: Undefined property of {$class} instance: {$k}");
return null;
}
}
}