francodacosta/sublime-php-getters-setters — pull request #28 by chriha (2014-03-08 15:12:59+00:00)
Title: better property naming options and coding conventions

I added the possibility to use the underscore for private properties and the first character as data type hint. I also added the visibility option of the property for the setter. The setter has to have the same visibility as the defined property.

So for example, when we define a private property such as
```
/**
* Example array
* @var array
*/
private $_aArray = [ ... ];
```
Getter and setter are created like this
```
/**
* Gets the Example array.
*
* @return array
*/
public function getArray()
{
return $this->_aArray;
}

/**
* Sets the Example array.
*
* @param array $_aArray the array
*
* @return self
*/
private function _setArray(array $aArray )
{
$this->_aArray = $aArray;
}
```
Well, these are conventions used by many developers, but this is just an option. Developers are still able to use their own conventions, if they like to.

Keep in mind, that the issue #21 may be quite similiar to this pull request, but for an older version. So this PR would resolve issue #21.

For everyone, who can't wait for an accepted PR, but want to use these changes. Just copy my [php-getter-setter.py](https://github.com/chriha/sublime-php-getters-setters/blob/master/php-getter-setter.py) into your `../Packages/PHP Getters and Setters/` directory.