Pro get/set
When a class has many methods, it is better to use verb prefixes, such as get/set, to distinguish methods from each other.
PHP example:
$foo->setText('Hello world!');
$foo->prependText('So. ');
$foo->appendText(' And welcome');
$x = $foo->getText();
By the way, in Hungarian notation prefixes go with a small letter and will not detract from keyword.
Counter get/set
When you need only two methods, it is easier to use the same noun in the context of using parameters.
jQuery example:
$('.foo').html(); //get
$('.foo').html('Hello world!'); //set
Examples
For functions and static methods with arrays as parameters I use the following rule:
If changes should occur only at run time:
setFoo($arr); // Replace/delete all properties, i.e. if some elements are not passed, the corresponding properties will get empty values.
setFoo([]); // Delete all properties
setFoo(); // Set all properties by default
delFoo($arr); // Delete specified properties
addFoo($arr); // Add/replace specified properties
If changes will be made forever (in DB or files):
deleteFoo(...); // Delete specified properties
insertFoo(...); // Add specified properties
replaceFoo(...); // Add or replace specified properties
updateFoo(...); // Update specified properties
For both cases:
$arr = getFoo(); // Get all properties
$val = getFoo($level1, $level2, ...); // You can obtain the value of the given level, placing the list of arguments
or
$val=getFoo()[$level1][$level2];