Properties panel implementing get and set methods

Hi All,
I want to implement some custom properties on a shape. For the properties entities in the properties panel, how do I implement the get and set method. What should be the parameters and the return values of these methods?