Example:
public function setDescription(string $description): SomeInterface;
to:
public function getDescription(): string;
Regex:
find: set(.*)\((.*) (.*)\):.*;
replace: get$1(): $2;
find: /\*.*\n.*\n.*(\n.*|)\*/
replace:
...
to:
...
Regex:
find: set(.*)\((.*) (\$.*)\): (.*);
replace: set$1($2 $3): $4 { return \$this->setData(self::__KEY__, $3); }
Note: You need to replace __KEY__
yourself.
...
to:
...
Regex:
find: get(.*)\(\): (.*);
replace: get$1(): $2 { return ($2) \$this->_get(self::__KEY__); }
Note: You need to replace __KEY__
yourself.