Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ Changelog
Features:

- [vim-plugin] Add new `GotoDefinition[Vsplit|Hsplit|Tab]` functions.
- [code-builder] Initial support for nullable types. Thanks @einenlum!
- [vim-plugin] FZF integration for list inputs (#769). Thanks @elythyr!
- [vim-plugin] FZF multiple selection (#773). Thanks @elythyr!
- [vim-plugin] Maintain correct cursor position after certain text diffs (#770), Thanks @elythyr!
- [code-builder] Initial support for nullable types. (@einenlum)
- [vim-plugin] FZF integration for list inputs (#769). (@elythyr)
- [vim-plugin] FZF multiple selection (#773). (@elythyr)
- [vim-plugin] Maintain correct cursor position after certain text diffs (#770), (@elythyr)
- [code-transform|rpc] Generate multiple accessors for a class. (@elythyr)

Bug fixes:

Expand All @@ -19,6 +20,11 @@ Bug fixes:
#760
- [code-builder] Variant is not passed to class generator (#766)

BC Break:

- [code-transform] Generate accessors is now a class action and allows
generation of multiple accessors.

## 2019-03-03 0.12.0

BC Break:
Expand Down
18 changes: 9 additions & 9 deletions doc/refactorings.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Fixes:
- [Add Missing Assignments](#add-missing-assignments)
- [Complete Constructor](#complete-constructor)
- [Fix namespace and/or class name](#fix-namespace-or-class-name)
- [Generate Accessor](#generate-accessor)
- [Generate Accessors](#generate-accessors)
- [Generate Method](#generate-method)
- [Implement Contracts](#implement-contracts)
- [Import Class](#import-class)
Expand Down Expand Up @@ -669,14 +669,14 @@ interface FoobarInterface
}
```

Generate Accessor
-----------------
Generate Accessors
------------------

Generate an accessor for a class property.
Generate accessors for a class.

- **Command**: _RPC only_
- **VIM plugin**: _Property context menu > Generate accessor_.
- **VIM function**:`:call phpactor#ContextMenu()`
- **VIM plugin**: _Class context menu > Generate accessor_.
- **VIM function**:`:call phpactor#GenerateAccessor()`

### Motivation

Expand All @@ -691,16 +691,16 @@ Cursor position shown as `<>`:
```php
<?php

class Foobar
class Foo<>bar
{
/**
* @var Barfoo
*/
private $bar<>foo;
private $barfoo;
}
```

After:
After selecting [one or more accessors](/vim-plugin.html#fzf-multi-selection)

```php
<?php
Expand Down