Creating new team matches
Can I change the below into 1 setter and 1 getter method?


You could use magic getters and setters, but you probably shouldn't (see the top-rated answer in that question; additionally, with the primitive approach, you would make all your private fields accessible from the outside). 

You should also ask yourself if you even need setters. If the properties of the object never change after construction, you should make it immutable, as immutable objects are easier to handle (you know that they never change).


  I would like to use the rand() function for match ID can I do this inside the setter function of setMatchId or should it be done outside of the class?


You should not add a method setMatchId() that doesn't accept an argument, but just generates the id. Setters should set something, not generate something.

On the other hand, a method such as regenerateMatchId would be perfectly acceptable (although I'm not sure why you would want the id to be random). 


  When I upload the class to a db I assume I would need to create a new method and code the DB upload inside the method or should this be done outside of the Class


By "upload to the db", you mean save in the database? Basically, you would have three options:


add the "save to db" method to this class
create a MatchDAO which saves matches to the db
use an ORM such as doctrine


Misc


class names should ideally start with an upper-case letter (see for example PSR-1)
your indentation is off, as is your vertical whitespace
what does the p in your argument names stand for? It's unclear, I would just remove it.