public function examplesFromMethod($class, $method)
{
if (!$method instanceof ReflectionMethod) {
$method = new ReflectionMethod($class, $method);
}
$doc = new DocBlock($method);
$parent = $method->getDeclaringClass();
$class = $parent->getName();
return $this->examples($doc, $class . '::' . $method->getName(), $method->getFileName(), $method->getStartLine());
}