Converts a Hoa\Ruler rule to PHP code