Changed php creating method for the @dynamic.