Automattic\WooCommerce\Admin\RemoteInboxNotifications\Transformers

Count::transform()publicWC 1.0

Count elements in Array.

@param array $value an array to count. @param stdClass|null $arguments arguments. @param string|null $default default value.

@return number

{} It's a method of the class: Count{}

No Hooks.

Return

null. Nothing.

Usage

$Count = new Count();
$Count->transform( $value, $arguments, $default );
$value (required)
-
$arguments(stdClass)
-
Default: null
$default **
-
Default: null

Code of Count::transform() WC 6.6.1

public function transform( $value, stdClass $arguments = null, $default = null ) {
	return count( $value );
}