public function setStateLayout($flag, $value, array $layout) { $value = (string) $value; $this->stateLayout[$flag][$value] = $layout; }