I have several classes as in the example.
class clase1 extends padreclase1 {
var $variable1 = 'valor1';
var $variable2 = 'valor2';
}
class clase2 extends padreclase2 {
var $variable1 = 'valor1';
var $variable2 = 'valor2';
}
The value of the variables will be the same in all cases, but I would not like to have to repeat their writing in all classes.
How can I do to put those variables in a file or similar and then be inserted at the beginning of each class? Since they must be attributes of each class.