public function __construct($name, $label) { $this->name = $name; $this->label = $this->formatLabel($label); }