public function setPrompts(array $prompts = null)
    {
        ValidationUtility::ensureNullOrArrayOfType(
            '$prompts', $prompts, '\Authlete\Types\Prompt');

        $this->prompts = $prompts;

        return $this;
    }