Doctrine\Common\Annotations\CachedReader::getLastModification PHP Method

getLastModification() private method

Returns the time the class was last modified, testing traits and parents
private getLastModification ( ReflectionClass $class ) : integer
$class ReflectionClass
return integer
    private function getLastModification(ReflectionClass $class)
    {
        $filename = $class->getFileName();
        $parent = $class->getParentClass();
        return max(array_merge([$filename ? filemtime($filename) : 0], array_map([$this, 'getTraitLastModificationTimes'], $class->getTraits()), array_map([$this, 'getLastModification'], $class->getInterfaces()), $parent ? [$this->getLastModification($parent)] : []));
    }