MatthiasMullie\Scrapbook\Adapters\MemoryStore::__construct PHP Метод

__construct() публичный Метод

public __construct ( integer | string $limit = null )
$limit integer | string Memory limit in bytes (defaults to 10% of memory_limit)
    public function __construct($limit = null)
    {
        if ($limit === null) {
            $phpLimit = ini_get('memory_limit');
            if ($phpLimit <= 0) {
                $this->limit = PHP_INT_MAX;
            } else {
                $this->limit = (int) ($this->shorthandToBytes($phpLimit) / 10);
            }
        } else {
            $this->limit = $this->shorthandToBytes($limit);
        }
    }