This necessarily follows from the restriction, imposed by the constitution, to the effect that statutes passed in the exercise of the police power of the commonwealth must not be repugnant or contrary to the constitution, one of the provisions of which is that the owner of private property appropriated to public uses shall receive a reasonable compensation therefor.