Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Assert.php

function Assert::greaterThanEq

@psalm-pure

Parameters

mixed $value:

mixed $limit:

string $message:

Throws

InvalidArgumentException

1 call to Assert::greaterThanEq()
Example::__construct in vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Example.php

File

vendor/webmozart/assert/src/Assert.php, line 870

Class

Assert
Efficient assertions to validate the input/output of your methods.

Namespace

Webmozart\Assert

Code

public static function greaterThanEq($value, $limit, $message = '') {
    if ($value < $limit) {
        static::reportInvalidArgument(\sprintf($message ?: 'Expected a value greater than or equal to %2$s. Got: %s', static::valueToString($value), static::valueToString($limit)));
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal