instructions))) { throw new \DomainException( 'Invalid instructions: must not be empty' ); } } public function jsonSerialize(): mixed { return $this->instructions; } }