public function getAllProperties(): ?array
    {
        $properties = null;
        // list all properties here, array_walk sucks on performance!
        foreach ($this as $property => $value) {
            if (Str::startsWith('_', $property)) {
                continue;
            }

            $properties[$property] = $value;
        }
        return $properties;
    }
public function getAllProperties(): ?array
    {
        $properties = null;
        // list all properties here, array_walk sucks on performance!
        foreach ($this as $property => $value) {
            if (Str::startsWith('_', $property)) {
                continue;
            }

            $properties[$property] = $value;
        }
        return $properties;
    }
public function getAllProperties ( ) : ? array { $ properties = null ; // list all properties here, array_walk sucks on performance! foreach ( $ this as $ property => $ value ) { if ( Str :: startsWith ( '_' , $ property ) ) { continue ; } $ properties [ $ property ] = $ value ; } return $ properties ; }
Get all properties for current model in key=>value array
@return array|null
Get all properties for current model in key = > value array