public function scripts()
    {
        $scripts = array_map(function ($scriptData) {
            /* @var $scriptData array<string, mixed> */
            return new Script(
                $scriptData['full_path'],
                $this->bytesToMb($scriptData['memory_consumption']),
                $scriptData['hits'],
                new \DateTimeImmutable('@' . $scriptData['last_used_timestamp'])
            );
        }, $this->data['scripts']);
        return new ScriptCollection($scripts, $this->calculateCacheSlots());
    }
public function scripts()
    {
        $scripts = array_map(function ($scriptData) {
            /* @var $scriptData array<string, mixed> */
            return new Script(
                $scriptData['full_path'],
                $this->bytesToMb($scriptData['memory_consumption']),
                $scriptData['hits'],
                new \DateTimeImmutable('@' . $scriptData['last_used_timestamp'])
            );
        }, $this->data['scripts']);
        return new ScriptCollection($scripts, $this->calculateCacheSlots());
    }
public function scripts ( ) { $ scripts = array_map ( function ( $ scriptData ) { /* @var $scriptData array<string, mixed> */ return new Script ( $ scriptData [ 'full_path' ] , $ this -> bytesToMb ( $ scriptData [ 'memory_consumption' ] ) , $ scriptData [ 'hits' ] , new \ DateTimeImmutable ( '@' . $ scriptData [ 'last_used_timestamp' ] ) ) ; } , $ this -> data [ 'scripts' ] ) ; return new ScriptCollection ( $ scripts , $ this -> calculateCacheSlots ( ) ) ; }
Returns data about cached scripts.

@return ScriptCollection
Returns data about cached scripts .