Elgg\Mocks\Database\MetadataTable::getAll PHP Method

getAll() public method

public getAll ( array $options = [] )
$options array
    public function getAll(array $options = array())
    {
        $guids = elgg_extract('guids', $options, (array) elgg_extract('guid', $options));
        $rows = [];
        foreach ($this->rows as $id => $row) {
            if (empty($guids) || in_array($row->entity_guid, $guids)) {
                $rows[] = new ElggMetadata($row);
            }
        }
        return $rows;
    }