public function setInitials($initials) { if (null === $initials) { throw new \Exception('The initials cannot be null.'); } $this->initials = substr($initials, 0, 2); return $this; }