51Degrees Pipeline for PHP

fiftyone\pipeline\ipintelligence\SwigHelpers Class Reference

Static Public Member Functions

static vectorToArray ($vector)
 Helper to convert a SWIG vector into a standard PHP array.
static arrayToVector ($array)
 Helper to convert a PHP array of strings to a SWIG VectorStringSwig.

Member Function Documentation

◆ arrayToVector()

fiftyone\pipeline\ipintelligence\SwigHelpers::arrayToVector ( $array)
static

Helper to convert a PHP array of strings to a SWIG VectorStringSwig.

Parameters
array<string>$array
Returns
\VectorStringSwig

◆ vectorToArray()

fiftyone\pipeline\ipintelligence\SwigHelpers::vectorToArray ( $vector)
static

Helper to convert a SWIG vector into a standard PHP array.

Parameters
object$vectorA SWIG wrapped std::vector with size() and get()
Returns
array<mixed>