My SimpleClass:
class Simple
{
private $test;
public function other() {};
public function getTest() {};
public function setTest() {};
public function getSecond() {};
public function setSecond() {};
}
How to get from this class all getters?
$ref = new \ReflectionClass(new SimpleClass());
$allMethods = $ref->getMethods();
And how can I get from $allMethods only getters (getTest, getSecond)?