src/ResultScan.php
protected function parseItems($items)
    {
        $items = $items instanceof Traversable ? $items->toArray() : $items;

        return array_map(function ($item) {
            return $item instanceof ScanEntity ? $item : new ScanEntity($item);
        }, $items);
    }
protected function parseItems($items)
    {
        $items = $items instanceof Traversable ? $items->toArray() : $items;

        return array_map(function ($item) {
            return $item instanceof ScanEntity ? $item : new ScanEntity($item);
        }, $items);
    }
protected function parseItems ( $ items ) { $ items = $ items instanceof Traversable ? $ items -> toArray ( ) : $ items ; return array_map ( function ( $ item ) { return $ item instanceof ScanEntity ? $ item : new ScanEntity ( $ item ) ; } , $ items ) ; }
Internal method to parse items.

Ensures that each item is a `ScanEntity` and has all the properties it needs
@param array|Traversable $items Array of items
@return array Parsed items
Internal method to parse items .