As the title says, I wanted to know how you can create a Class for a PHP chat that has the following structure.
$mensaje->send
$mensaje->delete
But I do not know how, because you have to create the constructor of the class in the following way
$mensaje = new Message()
the function delete uses a variable of an ID and the function of send needs a variable of a text and when I put a single variable that is what that function needs , the constructor gives me an error because it does not find the other variable of the other function.