'string', 'suffix' => 'string', 'description' => 'string', 'display_chart' => 'bool', 'default_value' => 'numeric', 'calc_type' => 'int|in:0,1', 'display_chart' => 'int', 'places' => 'numeric|min:0|max:4', ]; /** * 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 * * @return void */ public function __construct(Metric $metric, $name, $suffix, $description, $default_value, $calc_type, $display_chart, $places) { $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; } }