does not contain a definition for 'enable' and no accessible extension method 'enable

I’m following a tutorial ‘How to make a Video Game in Unity - COLLISION (E05) - YouTube’ and I’ve gone to disable the player movement with the code “movement.enable = false;” and it gives me the error message:

“‘PlayerMovements’ does not contain a definition for ‘enable’ and no accessible extension method ‘enable’ accepting a first argument of type ‘PlayerMovements’ could be found (are you missing a using directive or an assembly reference?”

What can I do to resolve this?
full code:

using UnityEngine;

public class PlayerCollision : MonoBehaviour
{
public PlayerMovements movement;

void OnCollisionEnter(Collision collisionInfo)
{
    if (collisionInfo.collider.tag == "Barrier")

        movement.enable = false;

    
}

}

enabled (not enable) is typically used to switch components on and off. If movement is a script this should work fine.

I am assuming in Start() you have a hold of the PlayerMovement script using something like

void Start()
{
      movement = this.GetComponent<PlayerMovement>(); //this assumes the script is on the object with the PlayerMovement script
}

If so, then movement.enabled = false should work fine