An obligation is a legal duty, by which a person is bound to do or not to do a certain thing.
(Enacted 1872.)