The metric calculation is based on the following article and calculates the number of public attributes
of a class.
Article: Monitoringofsourcecodemetricsinopensourceprojects by Paulo Roberto Miranda Meirelles.
See the adaptation of the paragraph about Number of Public Attributes in the article:
It measures the encapsulation. The attributes of a class must only serve to the functionalities of
itself. Thus, good programming practices recommend that the attributes of a class must be manipulated
using the access methods (Beck, 1997), the attributes of a class must be private, indicating that the
ideal number for this metric is zero.
perl v5.40.0 2024-11-17 Analizo::Metri...ublicAttributes(3pm)