'nullable|string', 'suffix' => 'nullable|string', 'description' => 'nullable|string', 'default_value' => 'nullable|numeric', 'calc_type' => 'nullable|int|in:0,1', 'display_chart' => 'nullable|int', 'places' => 'nullable|numeric|between:0,4', 'default_view' => 'nullable|numeric|between:0,4', 'threshold' => 'nullable|int', 'order' => 'nullable|int', 'visible' => 'nullable|int|between:0,2', ]; /** * Create a new update metric command instance. * * @param \CachetHQ\Cachet\Models\Metric $metric * @param string $name * @param string $suffix * @param string $description * @param float $default_value * @param int $calc_type * @param int $display_chart * @param int $places * @param int $default_view * @param int $threshold * @param int|null $order * @param int $visible * * @return void */ public function __construct(Metric $metric, $name, $suffix, $description, $default_value, $calc_type, $display_chart, $places, $default_view, $threshold, $order = null, $visible = null) { $this->metric = $metric; $this->name = $name; $this->suffix = $suffix; $this->description = $description; $this->default_value = $default_value; $this->calc_type = $calc_type; $this->display_chart = $display_chart; $this->places = $places; $this->default_view = $default_view; $this->threshold = $threshold; $this->order = $order; $this->visible = $visible; } }