public function __construct($class, $name) { $this->class = $class; $this->name = $name; // default for translation can be overwritten by setter $this->translation = ucfirst($name); }