public function clearProperties(): void
    {
        foreach ($this as $property => $value) {
            if (!Str::startsWith('_', $property)) {
                $this->{$property} = null;
            }
        }
    }
public function clearProperties(): void
    {
        foreach ($this as $property => $value) {
            if (!Str::startsWith('_', $property)) {
                $this->{$property} = null;
            }
        }
    }
public function clearProperties ( ) : void { foreach ( $ this as $ property => $ value ) { if ( ! Str :: startsWith ( '_' , $ property ) ) { $ this -> { $ property } = null ; } } }
Cleanup all public model properties
@return void
Cleanup all public model properties