Add a `func` similar to `prop`.