public function setSubject($subject) { if (!Validator::isEmpty($subject)) { throw new IllegalArgumentException('Prázdný text předmětu'); } $this->subject = (string) $subject; return $this; }