def add_review_date(self, doc, reviewed):
if len(doc.reviews) != <NUM_LIT:0>:<EOL><INDENT>if not self.review_date_set:<EOL><INDENT>self.review_date_set = True<EOL>date = utils.datetime_from_iso_format(reviewed)<EOL>if date is not None:<EOL><INDENT>doc.reviews[-<NUM_LIT:1>].review_date = date<EOL>return True<EOL><DEDENT>else:<EOL><INDENT>raise SPDXValueError('<STR_LIT>')<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise CardinalityError('<STR_LIT>')<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise OrderError('<STR_LIT>')<EOL><DEDENT>
Sets the review date. Raises CardinalityError if
        already set. OrderError if no reviewer defined before.
        Raises SPDXValueError if invalid reviewed value.