protected function containsUpdateAtAndCreatedAt($fields)
    {
        $autoManagedFields = array_filter($fields, function ($field) {
            return $field->isAutoManagedOnUpdate();
        });

        return count($autoManagedFields) == 2;
    }
protected function containsUpdateAtAndCreatedAt($fields)
    {
        $autoManagedFields = array_filter($fields, function ($field) {
            return $field->isAutoManagedOnUpdate();
        });

        return count($autoManagedFields) == 2;
    }
protected function containsUpdateAtAndCreatedAt ( $ fields ) { $ autoManagedFields = array_filter ( $ fields , function ( $ field ) { return $ field -> isAutoManagedOnUpdate ( ) ; } ) ; return count ( $ autoManagedFields ) == 2 ; }
Check if the given fields contains autoManagedFields

@return CrestApps\CodeGenerator\Models\Resource
Check if the given fields contains autoManagedFields