Koha::ERM::EUsage::UsageObject - Base class for ERM usage report entities
This is the base class for the usage report entities (titles, platforms, items and databases). Each entity has monthly usage records stored in the erm_usage_mus table. Yearly usage is read from the erm_usage_yus table, which holds the monthly usage summed per year.
Subclasses must implement _type.
Method to embed erm_usage_muses to this usage object for report formatting
Method to embed erm_usage_yuses to this usage object for report formatting
Getter for yearly_usages for this usage object
Yearly usage is read-only. The erm_usage_yus table is rebuilt from the monthly usage by Koha::ERM::EUsage::YearlyUsages->rebuild, so there is nothing to store here.
Getter/setter for monthly_usages for this usage object Skips adding monthly_usage if it already exists