The law will go into effect July 1.