public function setBackgroundColor($backgroundColor) { if (!strlen($backgroundColor) > 0) { throw new Exception('No background color specified'); } $this->backgroundColor = $backgroundColor; return $this; }