francodacosta / atom-php-getters-setters

automatically generate _Getters_ and _Setters_ for your php classes in the atom.io editor
MIT License
17 stars 10 forks source link

[setter] use name of variable instead of '$value' #10

Closed aitboudad closed 9 years ago

francodacosta commented 9 years ago

@aitboudad Thanks for the PR

Have you test this with "underscored" variables ? ex:

private $_foo;

will this work as you would expect?

aitboudad commented 9 years ago

I just tested, here is the result :


    /** 
     * Set the value of Foo 
     * 
     * @param mixed _foo
     * 
     * @return self
     */
    public function setFoo($_foo)
    {
        $this->_foo = $_foo;

        return $this;
    }