data = sp_get_sport_presets(); } public function __get( $key ) { return ( array_key_exists( $key, $this->data ) ? $this->data[ $key ] : null ); } public function __set( $key, $value ){ $this->data[ $key ] = $value; } }