The setter method should be public, void, static, and have two parameters. The first parameter should be of the type PSObject. ...

The setter method should be public, void, static, and have two parameters. The first parameter should be of the type PSObject. A second parameter is required if a getter method is also available, and should have the same type as the return type for the getter method.