Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

FloatProcessor.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\REST\Common\FieldTypeProcessor;
8
9 use eZ\Publish\Core\REST\Common\FieldTypeProcessor;
10
11 class FloatProcessor extends FieldTypeProcessor
12 {
16 public function preProcessValueHash($incomingValueHash)
17 {
18 if (is_numeric($incomingValueHash)) {
19 $incomingValueHash = (float)$incomingValueHash;
20 }
21
22 return $incomingValueHash;
23 }
24 }
eZ\Publish\Core\REST\Common\FieldTypeProcessor\FloatProcessor
Definition: FloatProcessor.php:12
eZ\Publish\Core\REST\Common\FieldTypeProcessor\FloatProcessor\preProcessValueHash
preProcessValueHash($incomingValueHash)
{Perform manipulations on a received $incomingValueHash.This method is called by the REST input parse...
Definition: FloatProcessor.php:16
eZ\Publish\Core\REST\Common\FieldTypeProcessor
FieldTypeProcessor.
Definition: FieldTypeProcessor.php:13
eZ\Publish\Core\REST\Common\FieldTypeProcessor
Definition: AuthorProcessor.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.