Open rmrhz opened 7 years ago
Isn't it a bad practice to have a method that exactly spells like a property? (e.g. keys()
and $keys
)
It may be, but for this matter the method have two functions. If null, returns the keys, if defined by an array, defines the keys.
Anyway, the $
prefix is a giveaway.
If null, returns the keys, if defined by an array, defines the keys.
Feels like jQuery.
About the entities, I shall expect not even a getter and a setter. What is the purpose of the $repositories
property?
As version v0.1.* will be shelved by next year, the new version will put new improvements and backwards incompatibility as functions will be renamed. The list below will be updated in the coming days.
setKeys
tokeys
setData
todata
data
tofill
entity
function to have a Callback parameter