addRule('runtime', [ 'type' => self::TYPE_STRING, 'description' => 'Runtime', 'default' => '', 'example' => 'node', ]) ->addRule('entrypoint', [ 'type' => self::TYPE_STRING, 'description' => 'Function Entrypoint', 'default' => '', 'example' => 'index.js', ]) ->addRule('commands', [ 'type' => self::TYPE_STRING, 'description' => 'Function install and build commands', 'default' => '', 'example' => 'npm install && npm run build', ]); } /** * Get Name * * @return string */ public function getName(): string { return 'DetectionRuntime'; } /** * Get Type * * @return string */ public function getType(): string { return Response::MODEL_DETECTION_RUNTIME; } }