public function get_label() { if ($this instanceof FormControlLabel) { return $this->label; } if ($this->container instanceof FormControlLabel) { return $this->container->label; } return ucwords(str_replace('_', ' ', $this->name)); }