addRule('min', [ 'type' => self::TYPE_FLOAT, 'description' => 'Minimum value to enforce on new documents.', 'default' => null, 'example' => 0.5, 'array' => false, 'required' => false, ]) ->addRule('max', [ 'type' => self::TYPE_FLOAT, 'description' => 'Minimum value to enforce on new documents.', 'default' => null, 'example' => 2.5, 'array' => false, 'required' => false, ]) ; } /** * Get Name * * @return string */ public function getName():string { return 'AttributeFloat'; } /** * Get Collection * * @return string */ public function getType():string { return Response::MODEL_ATTRIBUTE_FLOAT; } }