The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Fey::ORM::Mock::Recorder - Records the history of changes for a class

DESCRIPTION

This object is used to store a record of the changes for each class.

METHODS

This class provides the following methods:

Fey::ORM::Mock::Recorder->new()

Returns a new recorder object.

$recorder->record_action(...)

This method takes a set of parameters which will be passed directly to Fey::ORM::Mock::Action->new_action(). Then it stores the action.

$recorder->actions_for_class($class)

Given a class name, this returns a list of stored actions for that class, from least to most recent.

$recorder->clear_class($class)

Clears the record of actions for the class

$recorder->clear_all()

Clears the records for all classes.

AUTHOR

Dave Rolsky, <autarch@urth.org>

COPYRIGHT & LICENSE

Copyright 2008 Dave Rolsky, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.