You can use methods like setFoo('bar') and getFoo(). You don't need to create all the methods in the class. This library will do it for you. It uses Taits, built-in PHP and I have used my Annotations ...
The snippets has clipboard support, so any coppied text will be used as the property name in the inserted code. alt+cmd+, Inserts getter and setter with type casting. shift+alt+cmd+, Inserts getter ...