protected static function saveField(
        ParticleInterface $particle, 
        string $field_name, 
        /*mixed*/ $field_value, 
        bool $defer_persist, 
        FieldHelper $helper): void
    {

        if(!$defer_persist) {
            $particle->attributes()->$field_name = $field_value;
            return;
        }
        $particle->attributes()->quietSet($field_name, $field_value);
    }
protected static function saveField(
        ParticleInterface $particle, 
        string $field_name, 
        /*mixed*/ $field_value, 
        bool $defer_persist, 
        FieldHelper $helper): void
    {

        if(!$defer_persist) {
            $particle->attributes()->$field_name = $field_value;
            return;
        }
        $particle->attributes()->quietSet($field_name, $field_value);
    }
protected static function saveField ( ParticleInterface $ particle , string $ field_name , /*mixed*/ $ field_value , bool $ defer_persist , FieldHelper $ helper ) : void { if ( ! $ defer_persist ) { $ particle -> attributes ( ) -> $ field_name = $ field_value ; return ; } $ particle -> attributes ( ) -> quietSet ( $ field_name , $ field_value ) ; }
Helper method to save the field

This method exists to help extending the "field" method without overriding it.

@param ParticleInterface $particle
@param string $field_name Field name
@param mixed $field_value Field value
@param bool $defer_persist Whether to defer persistence
@param FieldHelper $helper an object full of information re: this field.

@return void

@throws \InvalidArgumentException thrown when there argument does not meet the constraints.
Helper method to save the field