Skip to content

Commit

Permalink
Update docblocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Aug 2, 2019
1 parent a821293 commit c7c8cc9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Database/Type/DecimalType.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class DecimalType extends BaseType implements BatchCastingInterface
protected $_useLocaleParser = false;

/**
* Convert integer data into the database format.
* Convert decimal strings into the database format.
*
* @param mixed $value The value to convert.
* @param \Cake\Database\DriverInterface $driver The driver instance to convert with.
Expand Down Expand Up @@ -76,7 +76,7 @@ public function toDatabase($value, DriverInterface $driver)
}

/**
* Convert float values to PHP floats
* Convert numeric values to strings representing decimal.
*
* @param mixed $value The value to convert.
* @param \Cake\Database\DriverInterface $driver The driver instance to convert with.
Expand Down Expand Up @@ -111,7 +111,7 @@ public function manyToPHP(array $values, array $fields, DriverInterface $driver)
}

/**
* Get the correct PDO binding type for integer data.
* Get the correct PDO binding type for decimal data.
*
* @param mixed $value The value being bound.
* @param \Cake\Database\DriverInterface $driver The driver.
Expand All @@ -123,7 +123,7 @@ public function toStatement($value, DriverInterface $driver): int
}

/**
* Marshalls request data into PHP floats.
* Marshalls request data into decimal strings.
*
* @param mixed $value The value to convert.
* @return string|null Converted value.
Expand Down Expand Up @@ -173,8 +173,8 @@ public function useLocaleParser(bool $enable = true)
}

/**
* Converts a string into a float point after parsing it using the locale
* aware parser.
* Converts localized string into a decimal string after parsing it using
* the locale aware parser.
*
* @param string $value The value to parse and convert to an float.
* @return string
Expand Down

0 comments on commit c7c8cc9

Please sign in to comment.