I see 2 ways you could do this
1. Re-open the class that offers the functionality and add your code to modify the behavior. I would not recommend that. I like leaving code that I didn't write as it is. 2. Create something very simple that receives the parameter you need and acts accordingly to use the existing beginning_of_week behavior and get what you want.