src/Serializer/NativeJsonSerializer.php
private function forceObject($params)
    {
        $forceObject = false;
        if (isset($params['force_object']) && is_bool($params['force_object']) && true === $params['force_object']) {
            $forceObject = JSON_FORCE_OBJECT;
        }

        return $forceObject;
    }
private function forceObject($params)
    {
        $forceObject = false;
        if (isset($params['force_object']) && is_bool($params['force_object']) && true === $params['force_object']) {
            $forceObject = JSON_FORCE_OBJECT;
        }

        return $forceObject;
    }
private function forceObject ( $ params ) { $ forceObject = false ; if ( isset ( $ params [ 'force_object' ] ) && is_bool ( $ params [ 'force_object' ] ) && true === $ params [ 'force_object' ] ) { $ forceObject = JSON_FORCE_OBJECT ; } return $ forceObject ; }
Decides whether to force objects.

@param array $params The array of params.

@return integer
@author Patrick Pokatilo <mail@shyxormz.net>
Decides whether to force objects .