/** * @param null|string $cacheDuration * * @throws \InvalidArgumentException * * @return RoleDescriptor */ public function setCacheDuration($cacheDuration) { Helper::validateDurationString($cacheDuration); $this->cacheDuration = $cacheDuration; return $this; }