Setter for the class properties
string
$key
The property name
mixed
$value = ''
The value to be set
void