function SerializerDataCollector::getMethodLocation
1 call to SerializerDataCollector::getMethodLocation()
- SerializerDataCollector::lateCollect in vendor/
symfony/ serializer/ DataCollector/ SerializerDataCollector.php - Collects data as late as possible.
File
-
vendor/
symfony/ serializer/ DataCollector/ SerializerDataCollector.php, line 249
Class
- SerializerDataCollector
- @author Mathias Arlaud <mathias.arlaud@gmail.com>
Namespace
Symfony\Component\Serializer\DataCollectorCode
private function getMethodLocation(string $class, string $method) : array {
$reflection = new \ReflectionClass($class);
return [
'class' => $reflection->getShortName(),
'file' => $reflection->getFileName(),
'line' => $reflection->getMethod($method)
->getStartLine(),
];
}