public static function Inspector::assertAllFloat in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Component/Assertion/Inspector.php \Drupal\Component\Assertion\Inspector::assertAllFloat()
Asserts that all members are float values.
Parameters
mixed $traversable: Variable to be examined.
Return value
bool TRUE if $traversable can be traversed and all members are floating point numbers.
1 call to Inspector::assertAllFloat()
- InspectorTest::testAssertAllFloat in core/
tests/ Drupal/ Tests/ Component/ Assertion/ InspectorTest.php - Tests asserting all members are floating point variables.
File
- core/
lib/ Drupal/ Component/ Assertion/ Inspector.php, line 252 - Contains \Drupal\Component\Assertion\Inspector.
Class
Namespace
Drupal\Component\AssertionCode
public static function assertAllFloat($traversable) {
return static::assertAll('is_float', $traversable);
}