class Singleton {
public function __construct() {
// Case #1
add_action( 'woocommerce_before_shop_loop_item', [ $this, 'open_product_wrapper' ], 10 );
add_action( 'woocommerce_shop_loop_item_title', [ $this, 'render_product_title' ], 10 );
// Case #2
add_action( 'woocommerce_before_shop_loop_item', [ $this, 'product_wrapper_open' ], 10 );
add_action( 'woocommerce_shop_loop_item_title', [ $this, 'product_title' ], 10 );
}
}
Are there any conventions or should I strive for consistency?
NOTE: In Laravel projects I always use verbs because each method is doing something.