enabled; } /** * @param bool $enabled */ public function setEnabled($enabled) { $this->enabled = $enabled; } /** * @return string */ public function getType() { if($this->getRawType()) { return $this->getRawType(); } if($this->isEnabled()) { $type = self::TYPE_SUCCESS; }else{ $type = self::TYPE_DEFAULT; } return $type; } /** * @return string|null */ public function getTitle() { /** * if raw return raw */ if($this->titleRaw) { return $this->titleRaw; } /** * return type depending on status */ if($this->isEnabled()) { $title = $this->title.self::TYPE_SUCCESS; }else{ $title = $this->title.self::TYPE_DEFAULT; } /** * */ return $title; } /** * @return bool */ public function getRawType() { return $this->rawType; } /** * @param bool $rawType */ public function setRawType($rawType) { $this->rawType = $rawType; } }