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

Breadcrumb

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

function Argument::size

Checks that argument array or countable object has exact number of elements.

Parameters

integer $value array elements count:

Return value

Token\ArrayCountToken

File

vendor/phpspec/prophecy/src/Prophecy/Argument.php, line 112

Class

Argument
Argument tokens shortcuts.

Namespace

Prophecy

Code

public static function size($value) {
    return new Token\ArrayCountToken($value);
}

API Navigation

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