$this
public function setContentId(string $cid) : static { if (!str_contains($cid, '@')) { throw new InvalidArgumentException(\sprintf('The "%s" CID is invalid as it doesn\'t contain an "@".', $cid)); } $this->cid = $cid; return $this; }