A witness is a person whose declaration under oath is received as evidence for any purpose, whether such declaration be made on oral examination, or by deposition or affidavit.
(Enacted 1872.)