public static function stringify(array $constructor, string $equator = '=', string $separator = ' ') : string
    {
        $strings = [];

        foreach ($constructor as $arg => $param) {
            if (is_object($param)) {
                $param = self::shortName($param);
            }

            if (is_array($param)) {
                $temp = array_combine(array_keys($param), $param) ?: [];

                $param = '[' . self::stringify($temp) . ']';
            }

            $strings[] = (string) $arg . $equator . (string) $param;
        }

        return implode($separator, $strings);
    }
public static function stringify(array $constructor, string $equator = '=', string $separator = ' ') : string
    {
        $strings = [];

        foreach ($constructor as $arg => $param) {
            if (is_object($param)) {
                $param = self::shortName($param);
            }

            if (is_array($param)) {
                $temp = array_combine(array_keys($param), $param) ?: [];

                $param = '[' . self::stringify($temp) . ']';
            }

            $strings[] = (string) $arg . $equator . (string) $param;
        }

        return implode($separator, $strings);
    }
public static function stringify ( array $ constructor , string $ equator = '=' , string $ separator = ' ' ) : string { $ strings = [ ] ; foreach ( $ constructor as $ arg => $ param ) { if ( is_object ( $ param ) ) { $ param = self :: shortName ( $ param ) ; } if ( is_array ( $ param ) ) { $ temp = array_combine ( array_keys ( $ param ) , $ param ) ? : [ ] ; $ param = '[' . self :: stringify ( $ temp ) . ']' ; } $ strings [ ] = ( string ) $ arg . $ equator . ( string ) $ param ; } return implode ( $ separator , $ strings ) ; }
Return a string representation of the constructor arguments from
an associative constructor array.

@param array $constructor
@param string $equator
@param string $separator
@return string
Return a string representation of the constructor arguments from an associative constructor array .