Visual studio encapsulated attribute for PHP

If you use Visual studio with some PHP extension (like PHP Tools, for example) maybe this snippet will be helpful.
Just save it on your PC and import in visual studio with : Tools->Code snippet manager.

Now you can use it writing: "setget" +tab button.

<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="">
<CodeSnippet Format="1.0.0">
<Title>attribute pack</Title>
<Author>Andrea Vincenzo Abbondanza</Author>
<Description>Encapsulate methods for an attribute</Description>
<ToolTip>The attribute's name</ToolTip>
<ToolTip>This element</ToolTip>

<Code Language="php">
<![CDATA[private $$$attr$;
public function Set$attr$($param$)
$this$->$attr$ = $param$;
public function Get$attr$()
return $this$->$attr$;