Value::build_list( int[]|float[] $values )
Builds a list of Value objects from a list of numeric values.
Contents
Parameters
- $values
-
(int[]|float[]) (Required)
Return
(TECTicketsCommerceUtilsValue[])
Source
File: src/Tickets/Commerce/Utils/Value.php
public static function build_list( $values ) {
return array_map( function ( $value ) {
if ( $value instanceof Value ) {
return $value;
}
return new self( $value );
}, $values );
}