public function adaptAfterExecuting($definition, $rmi, $arguments, $result) { if ($definition['provider'] !== 'Data') { return $arguments; } if ($rmi->getTarget() === self::$ALL_CONTEXT) { return $arguments; } $generic_index = $definition['generic_index']; if ($generic_index == null) { return $arguments; } $arguments[$generic_index] = array_merge($arguments[0]->getMissingProperties(), ReflectionUtil::getClassPropertiesAsArray($result[1])); return $arguments; }
private function getTimer($class) { $timer = str_replace("\"", "'", json_encode(ReflectionUtil::getAnnotation("BackendlessTimer", $class["path"]))); return $timer == null ? null : $timer; }