<?php

namespace Gaufrette\Adapter;

/**
 * Interface which add size calculation support to adapter.
 *
 * @author Markus Poerschke <markus@eluceo.de>
 */
interface SizeCalculator
{
    /**
     * Returns the size of the specified key.
     *
     * @param string $key
     *
     * @return int
     */
    public function size($key);
}
