Matching __setLocation method to inherited class