What to name this class?
        Posted  
        
            by orlandu63
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by orlandu63
        
        
        
        Published on 2010-04-23T18:27:19Z
        Indexed on 
            2010/04/23
            18:33 UTC
        
        
        Read the original article
        Hit count: 429
        
(This is not an interface: I simply omitted the method bodies)
class _ {
    protected $_data = array();
    function __construct($data);
    function set($name, $value);
    function get($name);
    function __set($name, $value);
    function __get($name); //aliases for their respective non-magic methods.
    # and some other generic methods
}
Essentially it's a class that provides a magical object-oriented reusable access layer to some data. I've considered DataLayer, DataObject and some others; I'd like to hear some suggestions from someone who's more terminologically savvy.
© Stack Overflow or respective owner