in reply to custom attribute?
Are you looking for Attribute::Handlers? I'm not sure I understand your question, but that's by far the easiest way to declare your own attributes.